Share via


ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Metode

Definisi

Menambahkan properti konteks saat ini ke pesan yang diberikan.

API ini mendukung infrastruktur produk dan tidak dimaksudkan untuk digunakan langsung dari kode Anda.

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)

Parameter

ctorMsg
IConstructionCallMessage

yang IConstructionCallMessage akan ditambahkan properti konteksnya.

Penerapan

Atribut

Pengecualian

Parameternya ctorMsg adalah null.

Keterangan

Kelas ContextAttribute adalah implementasi dari properti IContextProperty . Metode menambahkan GetPropertiesForNewContext properti ke kelas yang diberikan IConstructionCallMessage sehingga ketika pesan diterima, objek baru dapat dibuat di lingkungan konteks yang diperlukan.

Berlaku untuk