ContextAttribute.IsContextOK(Context, IConstructionCallMessage) Method

Definition

Returns a Boolean value indicating whether the context parameter meets the context attribute's requirements.

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

C#
public virtual bool IsContextOK(System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
C#
[System.Security.SecurityCritical]
public virtual bool IsContextOK(System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);

Parameters

ctx
Context

The context in which to check.

ctorMsg
IConstructionCallMessage

The IConstructionCallMessage to which to add the context property.

Returns

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

Implements

Attributes

Exceptions

Either ctx or ctorMsg is null.

Applies to

Produkt Versioner
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1