IContextProperty 接口

定义

从上下文属性收集命名信息,并确定新上下文是否与上下文属性兼容。Gathers naming information from the context property and determines whether the new context is ok for the context property.

此 API 支持产品基础结构,不能在代码中直接使用。

public interface class IContextProperty
public interface IContextProperty
[System.Runtime.InteropServices.ComVisible(true)]
public interface IContextProperty
type IContextProperty = interface
[<System.Runtime.InteropServices.ComVisible(true)>]
type IContextProperty = interface
Public Interface IContextProperty
派生
属性

注解

IContextProperty接口由特性提供给上下文的属性公开。The IContextProperty interface is exposed by the property contributed to a context by an attribute. 默认情况下,它还由基类实现 ContextAttribute ,该基类可从中 Context 扩展特性类。By default, it is also implemented by the ContextAttribute base class, from which Context attribute classes can extend.

属性

Name

此 API 支持产品基础结构,不能在代码中直接使用。

获取将属性添加到上下文中时使用的属性名称。Gets the name of the property under which it will be added to the context.

方法

Freeze(Context)

此 API 支持产品基础结构,不能在代码中直接使用。

当上下文冻结时调用。Called when the context is frozen.

IsNewContextOK(Context)

此 API 支持产品基础结构,不能在代码中直接使用。

返回一个指示上下文属性是否与新上下文兼容的布尔值。Returns a Boolean value indicating whether the context property is compatible with the new context.

适用于