LanguagePreferences.InitMachinePreferences Method
Gets language service-specific settings from the registry.
Namespace: Microsoft.VisualStudio.Package
Assemblies: Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)
Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
Syntax
'Declaração
Public Overridable Sub InitMachinePreferences ( _
key As RegistryKey, _
name As String _
)
public virtual void InitMachinePreferences(
RegistryKey key,
string name
)
Parameters
- key
Type: Microsoft.Win32.RegistryKey
[in] The RegistryKey object representing the desired base registry subkey.
- name
Type: System.String
[in] The name of the registry subkey containing the desired registry entries.
Remarks
The settings read by this method are applied when the language service is instantiated and are not normally subject to user modification without changing the registry. User-modifiable settings are obtained through InitUserPreferences.
The base method reads the language service-specific registry settings as described in LanguagePreferences.
This method is typically called from Init.
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.