IContextAttribute.IsContextOK(Context, IConstructionCallMessage) Méthode

Définition

Retourne une valeur booléenne indiquant si le contexte spécifié répond aux besoins de l'attribut de contexte.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 bool IsContextOK(System::Runtime::Remoting::Contexts::Context ^ ctx, System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Security.SecurityCritical]
public bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
abstract member IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
[<System.Security.SecurityCritical>]
abstract member IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
Public Function IsContextOK (ctx As Context, msg As IConstructionCallMessage) As Boolean

Paramètres

ctx
Context

Contexte à comparer à l'attribut de contexte en cours.

msg
IConstructionCallMessage

Appel de construction dont les paramètres doivent être comparés au contexte en cours.

Retours

true si le contexte passé est correct ; sinon, false.

Attributs

S’applique à