Partager via


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.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)

Syntax

'Déclaration
Public Overridable Sub InitMachinePreferences ( _
    key As RegistryKey, _
    name As String _
)
'Utilisation
Dim instance As LanguagePreferences
Dim key As RegistryKey
Dim name As String

instance.InitMachinePreferences(key, _
    name)
public virtual void InitMachinePreferences(
    RegistryKey key,
    string name
)
public:
virtual void InitMachinePreferences(
    RegistryKey^ key, 
    String^ name
)
abstract InitMachinePreferences : 
        key:RegistryKey * 
        name:string -> unit 
override InitMachinePreferences : 
        key:RegistryKey * 
        name:string -> unit 
public function InitMachinePreferences(
    key : RegistryKey, 
    name : String
)

Parameters

  • 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

See Also

Reference

LanguagePreferences Class

LanguagePreferences Members

Microsoft.VisualStudio.Package Namespace