RegisterLanguageExtensionAttribute Class
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.
Assembly: Microsoft.VisualStudio.Shell.14.0 (in Microsoft.VisualStudio.Shell.14.0.dll)
System::Attribute
Microsoft.VisualStudio.Shell::RegistrationAttribute
Microsoft.VisualStudio.Shell::RegisterLanguageExtensionAttribute
[ObsoleteAttribute("RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.")] [AttributeUsageAttribute(AttributeTargets::Class, AllowMultiple = true, Inherited = true)] public ref class RegisterLanguageExtensionAttribute sealed : RegistrationAttribute
| Name | Description | |
|---|---|---|
![]() | 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. |
| Name | Description | |
|---|---|---|
![]() | 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.) |
| Name | Description | |
|---|---|---|
![]() | Equals(Object^) | (Inherited from Attribute.) |
![]() | GetHashCode() | (Inherited from Attribute.) |
![]() | GetType() | (Inherited from Object.) |
![]() | IsDefaultAttribute() | (Inherited from Attribute.) |
![]() | Match(Object^) | (Inherited from Attribute.) |
![]() | Register(RegistrationAttribute::RegistrationContext^) | Registers this attribute with the given context.(Overrides RegistrationAttribute::Register(RegistrationAttribute::RegistrationContext^).) |
![]() | ToString() | (Inherited from Object.) |
![]() | 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.(Overrides RegistrationAttribute::Unregister(RegistrationAttribute::RegistrationContext^).) |
| Name | Description | |
|---|---|---|
![]() ![]() | _Attribute::GetIDsOfNames(Guid, IntPtr, UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfo(UInt32, UInt32, IntPtr) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::GetTypeInfoCount(UInt32) | (Inherited from Attribute.) |
![]() ![]() | _Attribute::Invoke(UInt32, Guid, UInt32, Int16, IntPtr, IntPtr, IntPtr, IntPtr) | (Inherited from Attribute.) |
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.
Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.



