ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Metódus
Definíció
Fontos
Egyes információk olyan, kiadás előtti termékekre vonatkoznak, amelyek a kiadásig még jelentősen módosulhatnak. A Microsoft nem vállal kifejezett vagy törvényi garanciát az itt megjelenő információért.
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.