ContextAttribute.IsContextOK(Context, IConstructionCallMessage) Metódus

Definíció

Logikai értéket ad vissza, amely jelzi, hogy a környezeti paraméter megfelel-e a környezeti attribútum követelményeinek.

Ez az API a termékinfrastruktúrát támogatja, és közvetlenül a kódból nem használható.

public:
 virtual bool IsContextOK(System::Runtime::Remoting::Contexts::Context ^ ctx, System::Runtime::Remoting::Activation::IConstructionCallMessage ^ ctorMsg);
public virtual bool IsContextOK(System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
[System.Security.SecurityCritical]
public virtual bool IsContextOK(System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage ctorMsg);
abstract member IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
override this.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
override this.IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
Public Overridable Function IsContextOK (ctx As Context, ctorMsg As IConstructionCallMessage) As Boolean

Paraméterek

ctx
Context

Az a környezet, amelyben ellenőrizni kell.

ctorMsg
IConstructionCallMessage

A IConstructionCallMessage környezeti tulajdonság hozzáadásának célja.

Válaszok

trueha az átadott kontextus rendben van; egyéb esetben. false

Megvalósítás

Attribútumok

Kivételek

Vagy ctx az ctorMsgnull.

A következőre érvényes: