Share via


ProvideEditorLogicalViewAttribute Třída

Definice

Tento atribut přidá logické zobrazení do editoru vytvořeného továrnou editoru.

public ref class ProvideEditorLogicalViewAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideEditorLogicalViewAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideEditorLogicalViewAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideEditorLogicalViewAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideEditorLogicalViewAttribute
Inherits RegistrationAttribute
Dědičnost
ProvideEditorLogicalViewAttribute
Atributy

Konstruktory

ProvideEditorLogicalViewAttribute(Object, String)

Vytvoří nový atribut RegisterEditorLogicalView pro registraci logického zobrazení poskytovaného editorem.

Vlastnosti

FactoryType

Získání identifikátoru GUID představujícího typ objektu pro vytváření editoru

IsTrusted

Získejte nebo nastavte příznak důvěryhodnosti pro toto logické zobrazení. Pokud zobrazení není důvěryhodné, nelze ho otevřít pomocí průvodce nebo kódu automatizace.

LogicalView

Získání identifikátoru GUID představujícího logické zobrazení

TypeId

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)

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

(Zděděno od RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Volá se pro registraci tohoto atributu v daném kontextu. Kontext obsahuje umístění, kam se mají umístit informace o registraci. Obsahuje také další informace, jako je zaregistrovaný typ a informace o cestě.

Unregister(RegistrationAttribute+RegistrationContext)

Zrušte registraci tohoto logického zobrazení.

Platí pro