Share via


RegisterLanguageExtensionAttribute Třída

Definice

Upozornění

RegisterLanguageExtensionAttribute has been deprecated. Please use ProvideLanguageExtensionAttribute instead.

Zaregistruje příponu souboru v dané jazykové službě použitím atributu VSPackage při registraci pomocí registračního nástroje, jako je regpkg.exe. Další informace najdete v tématu Registrace balíčků 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
Dědičnost
RegisterLanguageExtensionAttribute
Atributy

Poznámky

Tento atribut přidruží příponu souboru k dané objektu editoru. Objekt pro vytváření editoru může být zadán jako identifikátor GUID nebo typ a je umístěn v balíčku.

Konstruktory

RegisterLanguageExtensionAttribute(String, String)
Zastaralé.

Inicializuje novou instanci RegisterLanguageExtensionAttribute.

RegisterLanguageExtensionAttribute(Type, String)
Zastaralé.

Inicializuje novou instanci RegisterLanguageExtensionAttribute a inicializuje hodnoty jazykové služby a přípony souboru, které přidruží.

Vlastnosti

Extension
Zastaralé.

Získá přidruženou příponu souboru.

LanguageService
Zastaralé.

Získá identifikátor GUID služby jazyka.

TypeId
Zastaralé.

Přepište vlastnost TypeID, aby mohly odvozené třídy RegistrationAttribute pracovat s System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut odvozený z tohoto bude muset přepsat tuto vlastnost pouze v případě, že potřebuje lepší kontrolu nad instancemi, které lze použít na třídu.

(Zděděno od RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)
Zastaralé.

Získá cestu registru (vzhledem k kořenovému adresáři registru aplikace) VSPackage.

(Zděděno od RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)
Zastaralé.

Zaregistruje tento atribut s daným kontextem.

Unregister(RegistrationAttribute+RegistrationContext)
Zastaralé.

Odebere informace o registraci balíčku VSPackage při zavolání externím registračním nástrojem, jako je regpkg.exe. Další informace najdete v tématu Registrace balíčků VSPackages.

Platí pro