IContextAttribute.IsContextOK(Context, IConstructionCallMessage) Método
Definición
Devuelve un valor booleano que indica si el parámetro de contexto especificado cumple los requisitos de atributo de contexto.Returns a Boolean value indicating whether the specified context meets the context attribute's requirements.
Esta API admite la infraestructura de producto y no está pensada para usarse directamente en el código.
public:
bool IsContextOK(System::Runtime::Remoting::Contexts::Context ^ ctx, System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Security.SecurityCritical]
public bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
abstract member IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
[<System.Security.SecurityCritical>]
abstract member IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
Public Function IsContextOK (ctx As Context, msg As IConstructionCallMessage) As Boolean
Parámetros
- ctx
- Context
Contexto que se comprueba con el atributo de contexto actual.The context to check against the current context attribute.
Llamada de construcción cuyos parámetros deben cotejarse con el contexto actual.The construction call, parameters of which need to be checked against the current context.
Devoluciones
Es true
si el parámetro pasado al contexto es correcto; en caso contrario, es false
.true
if the passed in context is okay; otherwise, false
.
- Atributos