IsContextOK Method

SynchronizationAttribute.IsContextOK Method (Context, IConstructionCallMessage)


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

Namespace:   System.Runtime.Remoting.Contexts
Assembly:  mscorlib (in mscorlib.dll)

public override bool IsContextOK(
	Context ctx,
	IConstructionCallMessage msg


Type: System.Runtime.Remoting.Contexts.Context

The context to check.

Type: System.Runtime.Remoting.Activation.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.

Return Value

Type: System.Boolean

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

Exception Condition

The ctx or msg parameter is null.

.NET Framework
Available since 1.1
Return to top
© 2015 Microsoft