DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / AddPrivateDictionaryElement Method
Integer value, the group index of the data element.
Byte value, the element index of the data element. Value shall be within range of 0x10 - 0xFF
The name of the private creator
String value, the value representation of the new data element.
String value, the value multiplicity of the data element.
String value, the description of the data element.






In This Topic
    AddPrivateDictionaryElement Method
    In This Topic
    Adds Private Data Element Creator to the Dictionary.
    Syntax
    'Declaration
     
    
    Public Shared Sub AddPrivateDictionaryElement( _
       ByVal Group As System.Integer, _
       ByVal Element As System.Byte, _
       ByVal Creator As System.String, _
       ByVal VR As System.String, _
       ByVal VM As System.String, _
       ByVal Description As System.String _
    ) 
    'Usage
     
    
    Dim Group As System.Integer
    Dim Element As System.Byte
    Dim Creator As System.String
    Dim VR As System.String
    Dim VM As System.String
    Dim Description As System.String
     
    DicomGlobal.AddPrivateDictionaryElement(Group, Element, Creator, VR, VM, Description)
    public static void AddPrivateDictionaryElement( 
       System.int Group,
       System.byte Element,
       System.string Creator,
       System.string VR,
       System.string VM,
       System.string Description
    )
    public procedure AddPrivateDictionaryElement( 
        Group: System.Integer;
        Element: System.Byte;
        Creator: System.String;
        VR: System.String;
        VM: System.String;
        Description: System.String
    ); static; 
    public static function AddPrivateDictionaryElement( 
       Group : System.int,
       Element : System.byte,
       Creator : System.String,
       VR : System.String,
       VM : System.String,
       Description : System.String
    );
    public: static void AddPrivateDictionaryElement( 
       System.int Group,
       System.byte Element,
       System.string* Creator,
       System.string* VR,
       System.string* VM,
       System.string* Description
    ) 
    public:
    static void AddPrivateDictionaryElement( 
       System.int Group,
       System.byte Element,
       System.String^ Creator,
       System.String^ VR,
       System.String^ VM,
       System.String^ Description
    ) 

    Parameters

    Group
    Integer value, the group index of the data element.
    Element
    Byte value, the element index of the data element. Value shall be within range of 0x10 - 0xFF
    Creator
    The name of the private creator
    VR
    String value, the value representation of the new data element.
    VM
    String value, the value multiplicity of the data element.
    Description
    String value, the description of the data element.
    Remarks

    If the specified Group and Element locate an existing data element in the private element dictionary, that data element will be removed from the dictionary and the new data element will be added to the dictionary. Otherwise, a new dictionary entry for the specified data element will be created.

    The Creator is a string which will be found in the element GGGG,00EE and identifies the creator of this private element

    DicomGlobal.AddPrivateDictionaryElement(0x0023, 0x10, "privateCreator for block (0023,1000) - (0023,10FF)", "LO", "1", "Description of this private attribute"); DicomGlobal.AddDictionaryElement(0x23, 0x1001, "LT", "1", "private tag 1"); DicomDataSet ds = new DicomDataSet(); ds.Add(0x23, 0x1001, "Test Value");
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also