IContextAttribute.IsContextOK(Context, IConstructionCallMessage) Method

Definition

Returns a Boolean value indicating whether the specified context meets the context attribute's requirements.

This API supports the product infrastructure and is not intended to be used directly from your code.

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

Parameters

ctx
Context

The context to check against the current context attribute.

msg
IConstructionCallMessage

The construction call, parameters of which need to be checked against the current context.

Returns

true if the passed in context is okay; otherwise, false.

Attributes

Applies to