DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomContext Class / ContextID Property






In This Topic
    ContextID Property
    In This Topic
    Uniquely identifies a presentation context for a given association
    Syntax
    'Declaration
     
    
    Public ReadOnly Property ContextID As System.Byte
    'Usage
     
    
    Dim instance As DicomContext
    Dim value As System.Byte
     
    value = instance.ContextID
    public System.byte ContextID {get;}
    public read-only property ContextID: System.Byte; 
    public function get ContextID : System.byte
    public: __property System.byte get_ContextID();
    public:
    property System.byte ContextID {
       System.byte get();
    }
    Remarks

    The value of this property is normally a small odd integer between 1 and 255, though some faulty public domain software incorrectly uses even values which may be seen, and need to be tolerated.

    The value is set when the DicomContext item is created, either implicitly, or by the DicomContextCollection's Add method, and cannot be changed.

    This value may be used to set the DicomAssociation's PreferredPCID property and is also used to index into the DicomContextCollection.

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also