Sdílet prostřednictvím


ProvideEditorUIContextAttribute Třída

Definice

Přidruží UIContext k danému objektu pro vytváření editoru. Editor lze vytvořit, pouze pokud je uiContext aktivní.

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
Dědičnost
Atributy

Konstruktory

ProvideEditorUIContextAttribute(Object, Object)

Inicializuje instanci ProvideEditorUIContextAttribute

Vlastnosti

Factory

Identifikátor GUID objektu pro vytváření editoru

(Zděděno od ProvideEditorAttributeBase)
TypeId

Přepište vlastnost TypeID, aby odvozené třídy RegistrationAttribute fungovaly se System.ComponentModel.TypeDescriptor.GetAttributes(...). Atribut odvozený z tohoto atributu 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)
UIContext

UiContext, který se má přidružit k editoru

Metody

GetPackageRegKeyPath(Guid)

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

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

Volána pro registraci tohoto atributu s daným kontextem. Kontext obsahuje umístění, kam se mají umístit registrační informace. Obsahuje také například zaregistrovaný typ a informace o cestě.

Tato metoda je volána pro registraci i zrušení registrace. Rozdíl je v tom, že zrušení registrace pouze používá podregistr, který obrátí změny, které se na něj použily.

Unregister(RegistrationAttribute+RegistrationContext)

Zrušte registraci tohoto editoru.

Platí pro