SynchronizationAttribute.IsContextOK(Context, IConstructionCallMessage) Method

Definition

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

public:
 override bool IsContextOK(System::Runtime::Remoting::Contexts::Context ^ ctx, System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public override bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Runtime.InteropServices.ComVisible(true)]
public override bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public override bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
override this.IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
Public Overrides Function IsContextOK (ctx As Context, msg As IConstructionCallMessage) As Boolean

Parameters

ctx
Context

The context to check.

msg
IConstructionCallMessage

Information gathered at construction time of the context bound object marked by this attribute. The SynchronizationAttribute can inspect, add to, and remove properties from the context while determining if the context is acceptable to it.

Returns

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

Attributes

Exceptions

The ctx or msg parameter is null.

Applies to