Condividi tramite


LanguagePreferences Constructor (IServiceProvider, Guid, String)

Initializes a new instance of the LanguagePreferences class (this is the preferred method).

Namespace:  Microsoft.VisualStudio.Package
Assemblies:   Microsoft.VisualStudio.Package.LanguageService.9.0 (in Microsoft.VisualStudio.Package.LanguageService.9.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.12.0 (in Microsoft.VisualStudio.Package.LanguageService.12.0.dll)
  Microsoft.VisualStudio.Package.LanguageService (in Microsoft.VisualStudio.Package.LanguageService.dll)
  Microsoft.VisualStudio.Package.LanguageService.11.0 (in Microsoft.VisualStudio.Package.LanguageService.11.0.dll)
  Microsoft.VisualStudio.Package.LanguageService.10.0 (in Microsoft.VisualStudio.Package.LanguageService.10.0.dll)

Syntax

'Declaration
Public Sub New ( _
    site As IServiceProvider, _
    langSvc As Guid, _
    name As String _
)
public LanguagePreferences(
    IServiceProvider site,
    Guid langSvc,
    string name
)
public:
LanguagePreferences(
    IServiceProvider^ site, 
    Guid langSvc, 
    String^ name
)
new : 
        site:IServiceProvider * 
        langSvc:Guid * 
        name:string -> LanguagePreferences
public function LanguagePreferences(
    site : IServiceProvider, 
    langSvc : Guid, 
    name : String
)

Parameters

  • site
    Type: IServiceProvider

    [in] An IServiceProvider object supplying the service provider. This value cannot be nulla null reference (Nothing in Visual Basic).

  • langSvc
    Type: Guid

    [in] The GUID of the language service these preferences are associated with.

  • name
    Type: String

    [in] The name of the language service.

Remarks

name is used to read the registry and must be the same name the language service was registered under. All of the known language service properties are read from the registry under this name.

.NET Framework Security

See Also

Reference

LanguagePreferences Class

LanguagePreferences Overload

Microsoft.VisualStudio.Package Namespace