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

The name of the registry key.

The default return value.

Example

In This Topic
    GetRegWord(String,Int32) Method
    In This Topic
    Returns the value of a cached key with default value
    Syntax
    'Declaration
     
    
    Public Overloads Shared Function GetRegWord( _
       ByVal Name As System.String, _
       ByVal Default As System.Integer _
    ) As System.Integer
    public static System.int GetRegWord( 
       System.string Name,
       System.int Default
    )

    Parameters

    Name

    The name of the registry key.

    Default

    The default return value.

    Return Value

    int
    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.
    Example
    // Examples
    var createPrivateCreator = DicomGlobal.GetRegWord("CreatePrivateCreatorForXML", 0);
    var logMachineID = DicomGlobal.GetRegWord("LogMachineIDInfo", 0);
    var changeLossyID = DicomGlobal.GetRegWord("ChangeLossyUIDs", 1);
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also