ProvideUIContextRuleAttribute 类

定义

注册 UI 上下文规则。

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

构造函数

ProvideUIContextRuleAttribute(String, String, String, String[], String[], UInt32)

创建一个基于规则的 UI 上下文条目,该条目在表达式计算结果为 true 时被激活。

属性

ContextGuid

获取要创建的 UI 上下文的 GUID。

Delay

获取激活 UI 上下文之前的延迟时间(以毫秒为单位)。

Expression

获取用于确定 UI 上下文状态的表达式。

Name

获取创建的 UI 上下文的诊断名称。

TermNames

获取表达式中使用的术语名称。

TermValues

获取表达式中使用的术语的值。

TypeId

获取此属性的当前实例。

(继承自 RegistrationAttribute)

方法

GetPackageRegKeyPath(Guid)

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

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

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

Unregister(RegistrationAttribute+RegistrationContext)

取消注册该属性。

适用于