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

實作

屬性

例外狀況

ctorMsg 參數為 null

備註

類別 ContextAttribute 是 屬性的實作 IContextProperty 。 方法 GetPropertiesForNewContext 會將 屬性新增至指定的 IConstructionCallMessage 類別,以便在收到訊息時,可以在必要的內容環境中建立新的物件。

適用於