DicomObjects.NET Core Documentation
DicomObjects Namespace / DicomContextCollection Class / Add Method / Add(String,String) Method

The string value of proposed AbstractSyntax

The string value of he proposed TransferSyntax for that Presentation Context.




In This Topic
    Add(String,String) Method
    In This Topic
    Adds a DicomContext to a DicomContextCollection, together with the proposed TransferSyntax for the Presentation Context
    Syntax
    'Declaration
     
    
    Public Overloads Function Add( _
       ByVal AbstractSyntax As String, _
       ByVal TransferSyntax As String _
    ) As DicomContext
    'Usage
     
    
    Dim instance As DicomContextCollection
    Dim AbstractSyntax As String
    Dim TransferSyntax As String
    Dim value As DicomContext
     
    value = instance.Add(AbstractSyntax, TransferSyntax)

    Parameters

    AbstractSyntax

    The string value of proposed AbstractSyntax

    TransferSyntax

    The string value of he proposed TransferSyntax for that Presentation Context.

    Return Value

    Remarks

    Note that in keeping with the DICOM requirement, newly added contexts have odd values, so adding two items to a DicomContexts collection using this method will create item numbers 1 and 3, not 1 and 2.

    Transfer Syntax can be a space separated list as follows:

    "1.2.840.10008.1.2 1.2.840.10008.1.2.1 1.2.840.10008.1.2.2"

    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