Leadtools.Dicom Requires Medical product license | Send comments on this topic. | Back to Introduction - All Topics | Help Version 15.10.31
AddPresentationContext Method
See Also 
Leadtools.Dicom Namespace > DicomAssociate Class : AddPresentationContext Method




id
Presentation Context ID. The ID provides information about both the class type of the data and the Transfer Syntax to use when transferring the data. The ID should be unique. It should start at 1 and it must be odd (1, 3, 5, …).
result
Result value. This is only valid for an Associate Accept. It will be ignored in an Associate Request.
abstractSyntax
Abstract Syntax Name. This indicates the class type of the data. For a list of possible values, refer to Abstract Syntax Values.
Adds a Presentation Context to the DICOM Associate.

Syntax

Visual Basic (Declaration) 
Public Sub AddPresentationContext( _
   ByVal id As Byte, _
   ByVal result As DicomAssociateAcceptResultType, _
   ByVal abstractSyntax As String _
) 
Visual Basic (Usage)Copy Code
Dim instance As DicomAssociate
Dim id As Byte
Dim result As DicomAssociateAcceptResultType
Dim abstractSyntax As String
 
instance.AddPresentationContext(id, result, abstractSyntax)
C# 
public void AddPresentationContext( 
   byte id,
   DicomAssociateAcceptResultType result,
   string abstractSyntax
)
Managed Extensions for C++ 
public: void AddPresentationContext( 
   byte id,
   DicomAssociateAcceptResultType result,
   string* abstractSyntax
) 
C++/CLI 
public:
void AddPresentationContext( 
   byte id,
   DicomAssociateAcceptResultType result,
   String^ abstractSyntax
) 

Parameters

id
Presentation Context ID. The ID provides information about both the class type of the data and the Transfer Syntax to use when transferring the data. The ID should be unique. It should start at 1 and it must be odd (1, 3, 5, …).
result
Result value. This is only valid for an Associate Accept. It will be ignored in an Associate Request.
abstractSyntax
Abstract Syntax Name. This indicates the class type of the data. For a list of possible values, refer to Abstract Syntax Values.

Example

For an exmple, refer to SendCEchoRequest.

Remarks

A DICOM Associate (Request or Accept) can have multiple Presentation Contexts. A Presentation Context can be added by specifying a unique ID for the new Presentation Context and valid values for the result (Associate Accept Presentation Context entries only) and the Abstract Syntax Name.

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