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.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)

public:
ProvideLanguageExtensionAttribute(
	String^ languageServiceGuid,
	String^ extension
)

Parameters

languageServiceGuid
Type: System::String^

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

extension
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
    {
    }
}
Return to top
Show: