IContextAttribute.IsContextOK(Context, IConstructionCallMessage) Metod

Definition

Returnerar ett booleskt värde som anger om den angivna kontexten uppfyller kontextattributets krav.

Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.

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

Parametrar

ctx
Context

Kontexten som ska kontrolleras mot det aktuella kontextattributet.

msg
IConstructionCallMessage

Bygganropet, vars parametrar måste kontrolleras mot den aktuella kontexten.

Returer

trueom det som skickas i kontexten är okej; annars . false

Attribut

Gäller för