RegisterLanguageExtensionAttribute Class

NOTE: This API is now obsolete.

Registers a file extension with a given language service by applying the attribute to a Package-derived class or class that implements IVsPackage when registered using a registration tool like regpkg.exe. For more information, see Registering VSPackages (C#).

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

Syntax

'Declaration
<ObsoleteAttribute("RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.")> _
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class RegisterLanguageExtensionAttribute _
    Inherits RegistrationAttribute
'Usage
Dim instance As RegisterLanguageExtensionAttribute
[ObsoleteAttribute("RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.")]
[AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)]
public sealed class RegisterLanguageExtensionAttribute : RegistrationAttribute
[ObsoleteAttribute(L"RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.")]
[AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = true)]
public ref class RegisterLanguageExtensionAttribute sealed : public RegistrationAttribute
public final class RegisterLanguageExtensionAttribute extends RegistrationAttribute

Remarks

This attribute associates a file extension to a given editor factory. The editor factory may be specified as either a GUID or a type and is placed on a package.

Inheritance Hierarchy

System.Object
  System.Attribute
    Microsoft.VisualStudio.Shell.RegistrationAttribute
      Microsoft.VisualStudio.Shell.RegisterLanguageExtensionAttribute

Thread Safety

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

See Also

Reference

RegisterLanguageExtensionAttribute Members

Microsoft.VisualStudio.Shell Namespace