Compartir a través de


RegisterLanguageExtensionAttribute Constructor (Type, String)

Initializes a new instance of RegisterLanguageExtensionAttribute and initializes the values of the language service and file extension that it associates.

Namespace:  Microsoft.VisualStudio.Shell
Assemblies:   Microsoft.VisualStudio.Shell.10.0 (in Microsoft.VisualStudio.Shell.10.0.dll)
  Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
  Microsoft.VisualStudio.Shell (in Microsoft.VisualStudio.Shell.dll)

Syntax

'Declaración
Public Sub New ( _
    languageService As Type, _
    extension As String _
)
'Uso
Dim languageService As Type
Dim extension As String

Dim instance As New RegisterLanguageExtensionAttribute(languageService, _
    extension)
public RegisterLanguageExtensionAttribute(
    Type languageService,
    string extension
)
public:
RegisterLanguageExtensionAttribute(
    Type^ languageService, 
    String^ extension
)
new : 
        languageService:Type * 
        extension:string -> RegisterLanguageExtensionAttribute
public function RegisterLanguageExtensionAttribute(
    languageService : Type, 
    extension : String
)

Parameters

  • extension
    Type: System.String
    The file extension associated with the language service. Include a "." in the value of extension.

.NET Framework Security

See Also

Reference

RegisterLanguageExtensionAttribute Class

RegisterLanguageExtensionAttribute Members

RegisterLanguageExtensionAttribute Overload

Microsoft.VisualStudio.Shell Namespace