←Select platform

SetBinaryValue(DicomElement,IntPtr,UInt32) Method

Summary

Sets the binary value of an element.

Syntax

C#
VB
Java
WinRT C#
C++
public bool SetBinaryValue(  
   Leadtools.Dicom.DicomElement element, 
   IntPtr value, 
   uint length 
) 
Public Overloads Function SetBinaryValue( _ 
   ByVal element As Leadtools.Dicom.DicomElement, _ 
   ByVal value As IntPtr, _ 
   ByVal length As UInteger _ 
) As Boolean 
public bool SetBinaryValue(  
   Leadtools.Dicom.DicomElement element, 
   IntPtr value, 
   uint length 
) 
public boolean setBinaryValue(DicomElement element, byte[] binaryValue, int length) 
 function Leadtools.Dicom.DicomDataSet.SetBinaryValue(DicomElement,IntPtr,UInt32)(  
   element , 
   value , 
   length  
) 
public: 
bool SetBinaryValue(  
   Leadtools.Dicom.DicomElement^ element, 
   IntPtr value, 
   uint 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.

Remarks

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

Example

For an example, refer to SetIntValue.

Requirements

Target Platforms

Products | Support | Contact Us | Copyright Notices
© 1991-2017 LEAD Technologies, Inc. All Rights Reserved.
Leadtools.Dicom Assembly
Click or drag to resize