Condividi tramite


IContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Metodo

Definizione

Restituisce le proprietà di contesto al chiamante nel messaggio specificato.

Questa API supporta l'infrastruttura del prodotto e non è previsto che venga usata direttamente dal codice.

public:
 void GetPropertiesForNewContext(System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Security.SecurityCritical]
public void GetPropertiesForNewContext (System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
[<System.Security.SecurityCritical>]
abstract member GetPropertiesForNewContext : System.Runtime.Remoting.Activation.IConstructionCallMessage -> unit
Public Sub GetPropertiesForNewContext (msg As IConstructionCallMessage)

Parametri

msg
IConstructionCallMessage

Interfaccia IConstructionCallMessage a cui aggiungere le proprietà di contesto.

Attributi

Commenti

Il GetPropertiesForNewContext metodo può aggiungere proprietà di contesto direttamente all'elenco delle proprietà nell'interfaccia ContextPropertiesIConstructionCallMessage . L'implementazione predefinita nella ContextAttribute classe aggiungerà questa operazione all'elenco delle proprietà di contesto. Gli attributi di contesto sono liberi di eseguire l'override e possono implementare GetPropertiesForNewContext il proprio comportamento. Ad esempio, possono aggiungere all'elenco una nuova classe che implementa la proprietà context.

Si applica a