IContextAttribute::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 specified context meets the context attribute's requirements.

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

[SecurityCriticalAttribute]
bool IsContextOK(
	Context^ ctx,
	IConstructionCallMessage^ msg
)

Parameters

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

The context to check against the current context attribute.

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

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

Return Value

Type: System::Boolean

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

.NET Framework
Available since 1.1
Return to top
Show: