次の方法で共有


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

'宣言
Public Overridable Sub InitMachinePreferences ( _
    key As RegistryKey, _
    name As String _
)
public virtual void InitMachinePreferences(
    RegistryKey key,
    string name
)

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

Microsoft.VisualStudio.Package Namespace