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
- 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 |
Override the TypeID property in order to let the RegistrationAttribute derived classes to work with System.ComponentModel.TypeDescriptor.GetAttributes(...). An attribute derived from this one will have to override this property only if it needs a better control on the instances that can be applied to a class. (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. |