DicomObjects.NET8 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 String, _
       ByVal Default As String _
    ) As String
    'Usage
     
    
    Dim Name As String
    Dim Default As String
    Dim value As String
     
    value = DicomGlobal.GetRegString(Name, Default)
    public static string GetRegString( 
       string Name,
       string Default
    )
    public:
    static String^ GetRegString( 
       String^ Name,
       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: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

    See Also