ProvideLanguageExtensionAttribute Constructor (String, String)

Initializes a new instance of the ProvideLanguageExtensionAttribute attribute, using the specified language service GUID.

Namespace:  Microsoft.VisualStudio.Shell
Assembly:  Microsoft.VisualStudio.Shell.12.0 (in Microsoft.VisualStudio.Shell.12.0.dll)

public ProvideLanguageExtensionAttribute(
	string languageServiceGuid,
	string extension


Type: System.String

[in] A string containing the GUID of the language service.

Type: System.String

[in] A string containing the file extension to associate with the language service.

The format of the GUID string is "{B614A40A-80D9-4FAC-A6AD-FC2868FFF7CD}", substituting your own language service's GUID value for the one shown.

The file extension should always have the leading period.

using Microsoft.VisualStudio.Shell;

namespace MyLanguagePackage
    [ProvideLanguageExtension("{B614A40A-80D9-4FAC-A6AD-FC2868FFF7CD}", ".myext")]
    public class MyLanguagePackage : Package

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft