LEADTOOLS Medical (Leadtools.Dicom assembly)
LEAD Technologies, Inc

AddPresentationContext Method








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 value. This is only valid for an Associate Accept. It will be ignored in an Associate Request.
Abstract Syntax Name. This indicates the class type of the data. For a list of possible values, refer toAbstract Syntax Values.
Adds a Presentation Context to the DICOM Associate. .NET support WinRT support
Syntax
public void AddPresentationContext( 
   byte id,
   DicomAssociateAcceptResultType result,
   string abstractSyntax
)
'Declaration
 
Public Sub AddPresentationContext( _
   ByVal id As Byte, _
   ByVal result As DicomAssociateAcceptResultType, _
   ByVal abstractSyntax As String _
) 
'Usage
 
Dim instance As DicomAssociate
Dim id As Byte
Dim result As DicomAssociateAcceptResultType
Dim abstractSyntax As String
 
instance.AddPresentationContext(id, result, abstractSyntax)
public void AddPresentationContext( 
   byte id,
   DicomAssociateAcceptResultType result,
   string abstractSyntax
)
ObjectiveC Syntax
 function Leadtools.Dicom.DicomAssociate.AddPresentationContext( 
   id ,
   result ,
   abstractSyntax 
)
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 toAbstract Syntax Values.
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.
Example
For an example, refer to DicomNet.SendCEchoRequest.
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

DicomAssociate Class
DicomAssociate Members
PresentationContextCount Property
GetPresentationContextID Method
SetPresentationContextID Method
DeletePresentation Method

 

 


Products | Support | Contact Us | Copyright Notices

© 2006-2012 All Rights Reserved. LEAD Technologies, Inc.

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