RegisterLanguageExtensionAttribute RegisterLanguageExtensionAttribute RegisterLanguageExtensionAttribute RegisterLanguageExtensionAttribute RegisterLanguageExtensionAttribute Class

Definition

Warning

This API is now obsolete.

Registers a file extension with a given language service by applying the attribute to a VSPackage when registered using a registration tool like regpkg.exe. For more information, see Registering VSPackages.

public ref class RegisterLanguageExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class RegisterLanguageExtensionAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
[System.Obsolete("RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.")]
public sealed class RegisterLanguageExtensionAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
type RegisterLanguageExtensionAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class RegisterLanguageExtensionAttribute
Inherits RegistrationAttribute
Inheritance
RegisterLanguageExtensionAttributeRegisterLanguageExtensionAttributeRegisterLanguageExtensionAttributeRegisterLanguageExtensionAttributeRegisterLanguageExtensionAttribute
Attributes

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.

Constructors

RegisterLanguageExtensionAttribute(String, String) RegisterLanguageExtensionAttribute(String, String) RegisterLanguageExtensionAttribute(String, String) RegisterLanguageExtensionAttribute(String, String) RegisterLanguageExtensionAttribute(String, String)

Initializes a new instance of RegisterLanguageExtensionAttribute.

RegisterLanguageExtensionAttribute(Type, String) RegisterLanguageExtensionAttribute(Type, String) RegisterLanguageExtensionAttribute(Type, String) RegisterLanguageExtensionAttribute(Type, String) RegisterLanguageExtensionAttribute(Type, String)

Initializes a new instance of RegisterLanguageExtensionAttribute and initializes the values of the language service and file extension that it associates.

Properties

Extension Extension Extension Extension Extension

Gets the associated file extension.

LanguageService LanguageService LanguageService LanguageService LanguageService

Gets the GUID of the language service.

TypeId TypeId TypeId TypeId TypeId

Gets the current instance of this attribute.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid) GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext) Register(RegistrationAttribute+RegistrationContext)

Registers this attribute with the given context.

Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext) Unregister(RegistrationAttribute+RegistrationContext)

Removes the registration information about a VSPackage when called by an external registration tool such as regpkg.exe. For more information, see Registering VSPackages.

Applies to