SynchronizationAttribute::IsContextOK Method (Context^, IConstructionCallMessage^)
.NET Framework (current version)
Returns a Boolean value indicating whether the context parameter meets the context attribute'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.
- 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.
| Exception | Condition |
|---|---|
| ArgumentNullException | The ctx or msg parameter is null. |
.NET Framework
Available since 1.1
Available since 1.1
Show: