Share via


IContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) 方法

定义

在给定消息中将上下文属性返回给调用方。

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

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

参数

msg
IConstructionCallMessage

将上下文属性添加到的 IConstructionCallMessage

属性

注解

方法 GetPropertiesForNewContext 可以直接将上下文属性添加到 ContextProperties 接口中的 IConstructionCallMessage 属性列表。 类中的 ContextAttribute 默认实现会将此添加到上下文属性列表。 上下文属性可以自由重写 GetPropertiesForNewContext ,并且可以实现自己的行为。 例如,他们可以向列表中添加实现上下文属性的新类。

适用于