ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Metódus

Definíció

Hozzáadja az aktuális környezeti tulajdonságot az adott üzenethez.

Ez az API a termékinfrastruktúrát támogatja, és közvetlenül a kódból nem használható.

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)

Paraméterek

ctorMsg
IConstructionCallMessage

A IConstructionCallMessage környezeti tulajdonság hozzáadásának célja.

Megvalósítás

Attribútumok

Kivételek

A ctorMsg paraméter a következő null: .

Megjegyzések

Az ContextAttribute osztály egy IContextProperty tulajdonság implementációja. A GetPropertiesForNewContext metódus hozzáadja a tulajdonságot az adott IConstructionCallMessage osztályhoz, így az üzenet érkezésekor az új objektum a szükséges környezeti környezetben hozható létre.

A következőre érvényes: