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)

[SecurityCriticalAttribute]
[ComVisibleAttribute(true)]
public override bool IsContextOK(
	Context ctx,
	IConstructionCallMessage msg
)

Parameters

ctx
Type: System.Runtime.Remoting.Contexts.Context

The context to check.

msg
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
ArgumentNullException

The ctx or msg parameter is null.

.NET Framework
Available since 1.1
Return to top
Show: