ContextAttribute::IsContextOK Method (Context^, IConstructionCallMessage^)

 

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

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:
[SecurityCriticalAttribute]
virtual bool IsContextOK(
	Context^ ctx,
	IConstructionCallMessage^ ctorMsg
)

Parameters

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

The context in which to check.

ctorMsg
Type: System.Runtime.Remoting.Activation::IConstructionCallMessage^

The IConstructionCallMessage to which to add the context property.

Return Value

Type: System::Boolean

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

Exception Condition
ArgumentNullException

Either ctx or ctorMsg is null.

.NET Framework
Available since 1.1
Return to top
Show: