ProvideExtensibleUIContextRuleAttribute 类

定义

此属性注册 UI 上下文规则

public ref class ProvideExtensibleUIContextRuleAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
public ref class ProvideExtensibleUIContextRuleAttribute sealed : Microsoft::VisualStudio::Shell::RegistrationAttribute
[System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)]
public sealed class ProvideExtensibleUIContextRuleAttribute : Microsoft.VisualStudio.Shell.RegistrationAttribute
[<System.AttributeUsage(System.AttributeTargets.Class, AllowMultiple=true, Inherited=true)>]
type ProvideExtensibleUIContextRuleAttribute = class
    inherit RegistrationAttribute
Public NotInheritable Class ProvideExtensibleUIContextRuleAttribute
Inherits RegistrationAttribute
继承
ProvideExtensibleUIContextRuleAttribute
属性

构造函数

ProvideExtensibleUIContextRuleAttribute(String, String, UInt32)

创建一个基于 "可扩展规则" 的 UI 上下文条目,该条目在由其他扩展添加的任何字词为 true 时激活。

扩展器将使用同一 GUID 来创建新的 UI 上下文规则,并将 expression 设置为 "*" 以扩展此属性创建的规则。

属性

ContextGuid

要创建的 UI 上下文的上下文 Guid

Delay

激活 UI 上下文之前应用的延迟(毫秒)

Name

创建的 UI 上下文的诊断名称

TypeId

获取此属性的当前实例。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

获取与 VSPackage 的应用程序) 的注册表根相关的注册表路径 (。

(继承自 RegistrationAttribute)
Register(RegistrationAttribute+RegistrationContext)

调用以便向给定的上下文注册此属性。 上下文包含应放置注册信息的位置。 它还包含要注册的类型,以及路径信息。

Unregister(RegistrationAttribute+RegistrationContext)

取消注册此 AutoLoad 规范。

适用于