Udostępnij przez


ProvideEditorUIContextAttribute Klasa

Definicja

Kojarzy element UIContext z daną fabryką edytora. Edytor można utworzyć tylko wtedy, gdy element UIContext jest aktywny.

public ref class ProvideEditorUIContextAttribute : Microsoft::VisualStudio::Shell::ProvideEditorAttributeBase
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public class ProvideEditorUIContextAttribute : Microsoft.VisualStudio.Shell.ProvideEditorAttributeBase
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideEditorUIContextAttribute = class
    inherit ProvideEditorAttributeBase
Public Class ProvideEditorUIContextAttribute
Inherits ProvideEditorAttributeBase
Dziedziczenie
Atrybuty

Konstruktory

ProvideEditorUIContextAttribute(Object, Object)

Inicjuje wystąpienie klasy ProvideEditorUIContextAttribute

Właściwości

Factory

Identyfikator GUID fabryki edytora.

(Odziedziczone po ProvideEditorAttributeBase)
TypeId

Zastąp właściwość TypeID, aby umożliwić klasom pochodnym RegistrationAttribute pracować z atrybutem System.ComponentModel.TypeDescriptor.GetAttributes(...). Atrybut pochodzący z tego atrybutu 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)
UIContext

Interfejs użytkownikaContext do skojarzenia z edytorem

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ż informacje o typie rejestrowanym i ścieżce.

Ta metoda jest wywoływana zarówno do rejestracji, jak i wyrejestrowania. Różnica polega na tym, że wyrejestrowanie po prostu używa gałęzi, która odwraca zastosowane zmiany.

Unregister(RegistrationAttribute+RegistrationContext)

Wyrejestruj ten edytor.

Dotyczy