- element
- An item in the Data Set.
- length
- Number of bytes, from the binary value, to retrieve.
Visual Basic (Declaration) | |
---|---|
Overloads Public Function GetBinaryValue( _ ByVal element As DicomElement, _ ByVal length As Integer _ ) As Byte() |
Visual Basic (Usage) | Copy Code |
---|---|
Dim instance As DicomDataSet Dim element As DicomElement Dim length As Integer Dim value() As Byte value = instance.GetBinaryValue(element, length) |
C# | |
---|---|
public byte[] GetBinaryValue( DicomElement element, int length ) |
C++/CLI | |
---|---|
public: array<byte>^ GetBinaryValue( DicomElement^ element, int length ) |
Parameters
- element
- An item in the Data Set.
- length
- Number of bytes, from the binary value, to retrieve.
Return Value
Buffer that contains the binary value associated with the specified item in the Data Set, or null if the method couldn't get the binary value.For an example, refer to DicomDataSet.SetIntValue.
If the length specified by the DicomElement.Length property is greater than length, then the binary value returned will be truncated to the smaller length. If the the length specified by DicomElement.Length is less than length, then the entire binary value of element will be returned.
This method can be called for every Value Representation, and it will return the exact value in the Value Field (unconverted).
Target Platforms: Silverlight 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family, Windows Vista, Windows 7, MAC OS/X (Intel Only)
Reference
DicomDataSet ClassDicomDataSet Members
Overload List
GetValue
GetBinaryValue(DicomElement,IntPtr,Int32) Method
GetBinaryValue(DicomElement,Byte[],Int32,Int32) Method
GetByteValue Method
GetShortValue Method
GetLongValue Method
GetIntValue Method
GetFloatValue Method
GetDoubleValue Method
GetStringValue Method
GetAgeValue Method
GetDateValue Method
GetTimeValue Method
GetDateTimeValue Method
GetConvertValue Method