IContextAttribute 接口

定义

标识上下文特性。Identifies a context attribute.

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

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

注解

IContextAttribute类从所有上下文特性公开。The IContextAttribute class is exposed from all context attributes. 属性提供驻留在上下文中的属性,并为在该上下文中创建的对象强制实施特定策略。The attributes contribute a property that resides in a context and enforces a specific policy for the objects created in that context. 有关使用特性的详细信息,请参阅 特性For more information about using attributes, see Attributes.

方法

GetPropertiesForNewContext(IConstructionCallMessage)

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

在给定消息中将上下文属性返回给调用方。Returns context properties to the caller in the given message.

IsContextOK(Context, IConstructionCallMessage)

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

返回一个布尔值,指示指定上下文是否满足上下文特性的要求。Returns a Boolean value indicating whether the specified context meets the context attribute's requirements.

适用于