DicomObjects Reference
DicomObjects Reference / DicomContext Object / OfferedTS Property
In This Topic
    OfferedTS Property
    In This Topic
    Description
    The array of offered transfer contexts of the DicomContext Item
    Property type
    Read-write property
    Syntax
    Visual Basic
    Public Property OfferedTS As Variant
    Remarks

    This property holds the list of transfer syntaxes offered as part of association negotiation.  As an SCU, it may be set up by a client program prior to calling SetDestination.  As an SCP, the values may be inspected during the AssociationRequest event in order to select which one to accept (by setting AcceptedTS).
    If not set explicitly by a client program, a default list is used, based on the abstract context, and registry settings
    Whilst this property may be set to, or compared with full UID strings, use of UID's is advised for better readability.

    Note that Visual Basic can have a problem distinguishing between function parameters and array indices if an attempt is made to create the array and access a specific value in the same statement.  e.g.
    x=context.OfferedTS(1)
    will generate an error, stating that the numbers of parameters is incorrect, and this should therefore be changed to:
    ts= context.OfferedTS
    x=ts(1)
    Similar problems may occur in other languages, and same solution is recommended.

    See Also