RegisterLanguageExtensionAttribute Class

Definition

Caution

RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.

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
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
[<System.Obsolete("RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.")>]
type RegisterLanguageExtensionAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class RegisterLanguageExtensionAttribute
Inherits RegistrationAttribute
Inheritance
RegisterLanguageExtensionAttribute
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)

Initializes a new instance of RegisterLanguageExtensionAttribute.

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

Gets the associated file extension.

LanguageService

Gets the GUID of the language service.

TypeId

Gets the current instance of this attribute.

(Inherited from RegistrationAttribute)

Methods

GetPackageRegKeyPath(Guid)

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

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Registers this attribute with the given context.

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