Initializes a new instance of RegisterLanguageExtensionAttribute and initializes the values of the language service and file extension that it associates.
Namespace: Microsoft.VisualStudio.Shell
Assembly: Microsoft.VisualStudio.Shell.9.0 (in Microsoft.VisualStudio.Shell.9.0.dll)
Syntax
'Declaration
Public Sub New ( _
languageService As Type, _
extension As String _
)
'Usage
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
)
public function RegisterLanguageExtensionAttribute(
languageService : Type,
extension : String
)
Parameters
languageService
Type: System.TypeThe GUID of language service class that is derived from LanguageService as a string.
extension
Type: System.StringThe file extension associated with the language service. Include a "." in the value of extension.
.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.
See Also
Reference
RegisterLanguageExtensionAttribute Class
RegisterLanguageExtensionAttribute Members