IConstructionCallMessage.ContextProperties 属性

定义

获取上下文属性的列表,这些属性定义要在其中创建对象的上下文。Gets a list of context properties that define the context in which the object is to be created.

public:
 property System::Collections::IList ^ ContextProperties { System::Collections::IList ^ get(); };
[get: System.Security.SecurityCritical]
public System.Collections.IList ContextProperties { get; }
member this.ContextProperties : System.Collections.IList
Public ReadOnly Property ContextProperties As IList

属性值

要在其中构造对象的上下文的属性列表。A list of properties of the context in which to construct the object.

属性

异常

直接调用方没有基础结构权限。The immediate caller does not have infrastructure permission.

注解

通常, 会根据类的元数据特性选择一个新的对象的上下文。A new object's context is generally chosen based on metadata attributes of the class. 上下文选择机制可通过自定义特性 (也称为静态上下文属性, 这些属性被编译为类元数据) 进行扩展。The context selection mechanism is extensible through custom attributes, also known as static context properties, which are compiled into the class metadata. 远程激活对象时, ContextProperties包含构造调用消息中的各种属性所提供的属性列表。When activating an object remotely, the ContextProperties contains the list of properties that were contributed by various attributes in the construction call message. 这些属性用于创建在其中激活服务器对象的上下文。These properties are used to create the context in which the server object is activated.

安全性

SecurityPermission
用于处理基础结构代码。For operating with infrastructure code. 关联的枚举:InfrastructureAssociated enumeration: Infrastructure

适用于

另请参阅