Edit

Bagikan melalui


IConstructionCallMessage.ContextProperties Property

Definition

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(); };
public System.Collections.IList ContextProperties { get; }
public System.Collections.IList ContextProperties { [System.Security.SecurityCritical] get; }
member this.ContextProperties : System.Collections.IList
[<get: System.Security.SecurityCritical>]
member this.ContextProperties : System.Collections.IList
Public ReadOnly Property ContextProperties As IList

Property Value

A list of properties of the context in which to construct the object.

Attributes

Exceptions

The immediate caller does not have infrastructure permission.

Remarks

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. 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.

Applies to

See also