ContextAttribute.GetPropertiesForNewContext(IConstructionCallMessage) Método

Definición

Agrega la propiedad de contexto actual al mensaje especificado.

Esta API admite la infraestructura de producto y no está pensada para usarse directamente en el código.

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)

Parámetros

ctorMsg
IConstructionCallMessage

IConstructionCallMessage al que se va a agregar la propiedad de contexto.

Implementaciones

Atributos

Excepciones

El parámetro ctorMsg es null.

Comentarios

La ContextAttribute clase es una implementación de una IContextProperty propiedad . El GetPropertiesForNewContext método agrega la propiedad a la clase especificada IConstructionCallMessage para que cuando se reciba el mensaje, el nuevo objeto se puede crear en el entorno de contexto necesario.

Se aplica a