DicomObjects Reference
DicomObjects Reference / DicomContexts Collection / Add Method
The abstract syntax of the new presentation context
In This Topic
    Add Method
    In This Topic
    Description
    Adds a DicomContext item to a DicomContexts collection
    Syntax
    Visual Basic
    Public Function Add( _
       ByVal AbstractSyntax As String _
    ) As DicomContext
    Parameters
    AbstractSyntax
    The abstract syntax of the new presentation context
    Remarks
    This method may only be used on the Contexts property of a DicomConnection before calling SetDestination.
    This is the only programmatic means of creating a DicomContext item, and after creation, an appropriate list of transfer contexts to be offered by setting the new item’s OfferedTS property.
    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.
    See Also