ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Méthode

Définition

Ajoute la propriété de contexte actuelle au message donné.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

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ètres

ctorMsg
IConstructionCallMessage

IConstructionCallMessage auquel ajouter la propriété de contexte.

Implémente

Attributs

Exceptions

Le paramètre ctorMsg a la valeur null.

Remarques

La ContextAttribute classe est une implémentation d’une IContextProperty propriété. La GetPropertiesForNewContext méthode ajoute la propriété à la classe donnée IConstructionCallMessage afin que lorsque le message est reçu, le nouvel objet puisse être créé dans l’environnement de contexte requis.

S’applique à