DicomObjects.NET.8.48 Documentation
DicomObjects Namespace / DicomGlobal Class / GetRegString Method / GetRegString(String,String) Method

The name of the registry key.

The default return value.







In This Topic
    GetRegString(String,String) Method
    In This Topic
    Returns the value of a cached key with default value
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetRegString( _
       ByVal Name As System.String, _
       ByVal Default As System.String _
    ) As System.String
    'Usage
     
    
    Dim Name As System.String
    Dim Default As System.String
    Dim value As System.String
     
    value = DicomGlobal.GetRegString(Name, Default)
    public static System.string GetRegString( 
       System.string Name,
       System.string Default
    )
    public function GetRegString( 
        Name: System.String;
        Default: System.String
    ): System.String; static; 
    public static function GetRegString( 
       Name : System.String,
       Default : System.String
    ) : System.String;
    public: static System.string* GetRegString( 
       System.string* Name,
       System.string* Default
    ) 
    public:
    static System.String^ GetRegString( 
       System.String^ Name,
       System.String^ Default
    ) 

    Parameters

    Name

    The name of the registry key.

    Default

    The default return value.

    Return Value

    string
    Remarks

    This method returns the registry key values from a internal look up table. If Name does not exist in that table, the default value will be returned.

    As DicomGlobal does not look in to registry any more (as did in COM version) for key values, instead, an internal look up table is used to provide all those options used by DicomObjects, like logging, Importing/Exporting external files, Compression/Decompression, Supported SOP Class, Supported Transfer Syntax.

    For a current list of values, se the wiki: http://www.medicalconnections.co.uk/kb/Registry_Values

    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also