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.

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

声明
<ObsoleteAttribute("RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.")> _
<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple := True, Inherited := True)> _
Public NotInheritable Class RegisterLanguageExtensionAttribute _
    Inherits RegistrationAttribute
用法
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
[<SealedAttribute>]
[<ObsoleteAttribute("RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.")>]
[<AttributeUsageAttribute(AttributeTargets.Class, AllowMultiple = true, Inherited = true)>]
type RegisterLanguageExtensionAttribute =  
    class
        inherit RegistrationAttribute
    end
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