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

 

Returns a Boolean value that indicates whether the specified Context meets UrlAttribute's requirements.

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

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

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, the parameters of which need to be checked against the current context.

Return Value

Type: System::Boolean

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

Exception Condition
SecurityException

The immediate caller does not have infrastructure permission.

SecurityPermission

For operating with infrastructure code. Associated enumeration: SecurityPermissionFlag::Infrastructure

.NET Framework
Available since 1.1
Return to top
Show: