UrlAttribute::IsContextOK Method (Context^, IConstructionCallMessage^)
.NET Framework (current version)
Returns a Boolean value that indicates whether the specified Context meets UrlAttribute's requirements.
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.
| 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
Available since 1.1
Show: