ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Metoda

Definicja

Dodaje bieżącą właściwość kontekstu do danego komunikatu.

Ten interfejs API obsługuje infrastrukturę produktu i nie jest przeznaczony do użycia bezpośrednio z poziomu kodu.

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)

Parametry

ctorMsg
IConstructionCallMessage

Właściwość IConstructionCallMessage , do której ma zostać dodana właściwość kontekstu.

Implementuje

Atrybuty

Wyjątki

Parametr ctorMsg to null.

Uwagi

Klasa ContextAttribute jest implementacją IContextProperty właściwości. Metoda GetPropertiesForNewContext dodaje właściwość do danej IConstructionCallMessage klasy, aby po odebraniu komunikatu można utworzyć nowy obiekt w wymaganym środowisku kontekstowym.

Dotyczy