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.

Example

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
    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

    Example
    // Examples
    var MpegLiblocation = DicomGlobal.GetRegString("MpegLibraryLocation", "C:\\Temp");
    var TS = DicomGlobal.GetRegString("TransferSyntax/", TransferSyntaxes.ExplicitVRBigEndian);
    var changeLossy = DicomGlobal.GetRegString("ChangeLossyUIDs", "0");
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also