Sdílet prostřednictvím


UrlAttribute.IsContextOK(Context, IConstructionCallMessage) Metoda

Definice

Vrátí logickou hodnotu, která označuje, zda zadaná Context hodnota splňuje UrlAttributepožadavky.

public:
 override bool IsContextOK(System::Runtime::Remoting::Contexts::Context ^ ctx, System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public override bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Runtime.InteropServices.ComVisible(true)]
public override bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Runtime.InteropServices.ComVisible(true)]
[System.Security.SecurityCritical]
public override bool IsContextOK (System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
override this.IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
[<System.Runtime.InteropServices.ComVisible(true)>]
override this.IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Security.SecurityCritical>]
override this.IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
Public Overrides Function IsContextOK (ctx As Context, msg As IConstructionCallMessage) As Boolean

Parametry

ctx
Context

Kontext, který se má zkontrolovat proti aktuálnímu atributu kontextu.

msg
IConstructionCallMessage

Volání konstrukce, jehož parametry je třeba zkontrolovat v aktuálním kontextu.

Návraty

truepokud je předaný kontext přijatelný; v opačném případě . false

Atributy

Výjimky

Okamžitý volající nemá oprávnění k infrastruktuře.

Platí pro

Viz také