ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) 方法

定义

将当前上下文属性添加到给定的消息。

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

public:
 virtual void GetPropertiesForNewContext(System::Runtime::Remoting::Activation::IConstructionCallMessage ^ ctorMsg);
public virtual void GetPropertiesForNewContext(System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
[System.Security.SecurityCritical]
public virtual void GetPropertiesForNewContext(System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
override this.GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
[<System.Security.SecurityCritical>]
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
override this.GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
Public Overridable Sub GetPropertiesForNewContext (ctorMsg As IConstructionCallMessage)

参数

ctorMsg
IConstructionCallMessage

IConstructionCallMessage要向其添加上下文属性的项。

实现

属性

例外

参数 ctorMsgnull.

注解

ContextAttribute 类是属性的 IContextProperty 实现。 该方法 GetPropertiesForNewContext 将属性添加到给定 IConstructionCallMessage 类,以便在收到消息时,可以在所需的上下文环境中创建新对象。

适用于