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 類別,使得當收到訊息時,可以在所需的上下文環境中建立新的物件。

適用於