ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
為給定訊息加上當前上下文屬性。
此 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 類別,使得當收到訊息時,可以在所需的上下文環境中建立新的物件。