LanguagePreferences::GetIntegerValue Method (RegistryKey^, String^, Int32)
Visual Studio 2015
Gets an integer value from the specified registry entry.
Assembly: Microsoft.VisualStudio.Package.LanguageService.14.0 (in Microsoft.VisualStudio.Package.LanguageService.14.0.dll)
Parameters
- key
-
Type:
Microsoft.Win32::RegistryKey^
[in] The RegistryKey object representing the desired registry subkey.
- name
-
Type:
System::String^
[in] The name of the registry entry for which to get the value.
- def
-
Type:
System::Int32
[in] The default value to use if the registry entry is not found.
Return Value
Type: System::Int32The integer value stored in the registry entry if the registry entry exists, otherwise def if the registry entry does not exist. If the registry entry is a string, then the string is evaluated as a number.
This is a helper method used for obtaining numerical values from the registry. It is typically called from InitMachinePreferences.
Show: