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.







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
    'Usage
     
    
    Dim Name As System.String
    Dim Default As System.Integer
    Dim value As System.Integer
     
    value = DicomGlobal.GetRegWord(Name, Default)
    public static System.int GetRegWord( 
       System.string Name,
       System.int Default
    )
    public function GetRegWord( 
        Name: System.String;
        Default: System.Integer
    ): System.Integer; static; 
    public static function GetRegWord( 
       Name : System.String,
       Default : System.int
    ) : System.int;
    public: static System.int GetRegWord( 
       System.string* Name,
       System.int Default
    ) 
    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.
    Requirements

    Target Platforms: .NET CLR 4.8 or higher

    See Also