ProvideEditorUIContextAttribute Class

Definition

Associates a UIContext with a given editor factory. The editor can only be created when the UIContext is active.

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
Inheritance
Attributes

Constructors

ProvideEditorUIContextAttribute(Object, Object)

Initializes an instance of ProvideEditorUIContextAttribute

Properties

Factory

The editor factory guid.

(Inherited from ProvideEditorAttributeBase)
TypeId

Gets the current instance of this attribute.

(Inherited from RegistrationAttribute)
UIContext

The UIContext to associate with the editor

Methods

GetPackageRegKeyPath(Guid)

Gets the registry path (relative to the registry root of the application) of the VSPackage.

(Inherited from RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

Called to register this attribute with the given context. The context contains the location where the registration information should be placed. it also contains such as the type being registered, and path information.

This method is called both for registration and unregistration. The difference is that unregistering just uses a hive that reverses the changes applied to it.

Unregister(RegistrationAttribute+RegistrationContext)

Unregister this editor.

Applies to