Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 16.5.9.25
SetBinaryValue(DicomElement,IntPtr,Int32) Method
See Also 
Leadtools.Dicom Namespace > DicomDataSet Class > SetBinaryValue Method : SetBinaryValue(DicomElement,IntPtr,Int32) Method



element
An item in the Data Set.
value
Buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.
element
An item in the Data Set.
value
Buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.
Sets the binary value of an element.

Syntax

Visual Basic (Declaration) 
Overloads Public Function SetBinaryValue( _
   ByVal element As DicomElement, _
   ByVal value As IntPtr, _
   ByVal length As Integer _
) As Boolean
Visual Basic (Usage)Copy Code
Dim instance As DicomDataSet
Dim element As DicomElement
Dim value As IntPtr
Dim length As Integer
Dim value As Boolean
 
value = instance.SetBinaryValue(element, value, length)
C# 
public bool SetBinaryValue( 
   DicomElement element,
   IntPtr value,
   int length
)
C++/CLI 
public:
bool SetBinaryValue( 
   DicomElement^ element,
   IntPtr value,
   int length
) 

Parameters

element
An item in the Data Set.
value
Buffer that contains the binary value to set.
length
Value that represents the length, in bytes, of the buffer you allocated.

Return Value

true if the binary value of the Data Element was set successfully. false if could not set the binary value of the Data Element.

Example

Remarks

This method overwrites the value of the Data Element. The Value Length of the Data Element is then equal to length.

Requirements

Target Platforms: Microsoft .NET Framework 3.0, Windows XP, Windows Server 2003 family, Windows Server 2008 family

See Also

Leadtools.Dicom requires a Medical toolkit server license and unlock key. For more information, refer to: Imaging Pro/Document/Medical Features