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




id
Presentation Context ID of the Presentation Context to which to set the extended data. The ID provides information about both the class type of the data and the Transfer Syntax to use when transferring the data. It also identifies a specific Presentation Context within an Associate.
data
Pointer to a buffer that contains the data to set.
dataLength
Length of the data.
Sets the extended data associated with the specified Presentation Context.

Syntax

Visual Basic (Declaration) 
Overloads Public Sub SetExtendedData( _
   ByVal id As Byte, _
   ByVal data As IntPtr, _
   ByVal dataLength As Integer _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomAssociate
Dim id As Byte
Dim data As IntPtr
Dim dataLength As Integer
 
instance.SetExtendedData(id, data, dataLength)
C# 
public void SetExtendedData( 
   byte id,
   IntPtr data,
   int dataLength
)
Managed Extensions for C++ 
public: void SetExtendedData( 
   byte id,
   IntPtr data,
   int dataLength
) 
C++/CLI 
public:
void SetExtendedData( 
   byte id,
   IntPtr data,
   int dataLength
) 

Parameters

id
Presentation Context ID of the Presentation Context to which to set the extended data. The ID provides information about both the class type of the data and the Transfer Syntax to use when transferring the data. It also identifies a specific Presentation Context within an Associate.
data
Pointer to a buffer that contains the data to set.
dataLength
Length of the data.

Example

For an exmple, refer to IsRoleSelect.

Remarks

To retrieve the length of the extended data associated with a Presentation Context, call GetExtendedDataLength.

To get the extended data associated with a Presentation Context, call GetExtendedData or GetExtendedDataPtr.

Requirements

Target Platforms: Microsoft .NET Framework 2.0, Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

See Also

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