Udostępnij przez


ProvideEditorLogicalViewAttribute Klasa

Definicja

Ten atrybut dodaje widok logiczny do edytora utworzonego przez fabrykę edytorów.

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
Dziedziczenie
ProvideEditorLogicalViewAttribute
Atrybuty

Konstruktory

ProvideEditorLogicalViewAttribute(Object, String)

Tworzy nowy atrybut RegisterEditorLogicalView w celu zarejestrowania widoku logicznego dostarczonego przez edytor.

Właściwości

FactoryType

Pobieranie identyfikatora GUID reprezentującego typ fabryki edytora

IsTrusted

Pobierz lub ustaw flagę zaufania dla tego widoku logicznego. Jeśli widok nie jest zaufany, nie można go otworzyć z poziomu kreatora ani kodu automatyzacji.

LogicalView

Pobieranie identyfikatora GUID reprezentującego widok logiczny

TypeId

Zastąp właściwość TypeID, aby umożliwić klasom pochodnym RegistrationAttribute pracować z elementem System.ComponentModel.TypeDescriptor.GetAttributes(...). Atrybut pochodzący z tej właściwości będzie musiał zastąpić tę właściwość tylko wtedy, gdy potrzebuje lepszej kontroli nad wystąpieniami, które można zastosować do klasy.

(Odziedziczone po RegistrationAttribute)

Metody

GetPackageRegKeyPath(Guid)

Pobiera ścieżkę rejestru (względem katalogu głównego rejestru aplikacji) pakietu VSPackage.

(Odziedziczone po RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Wywoływana w celu zarejestrowania tego atrybutu w danym kontekście. Kontekst zawiera lokalizację, w której należy umieścić informacje o rejestracji. Zawiera również inne informacje, takie jak typ zarejestrowany i informacje o ścieżce.

Unregister(RegistrationAttribute+RegistrationContext)

Wyrejestruj ten widok logiczny.

Dotyczy