Share via


IContextAttribute.IsContextOK(Context, IConstructionCallMessage) Methode

Definition

Gibt einen booleschen Wert zurück, der angibt, ob der angegebene Kontext den Anforderungen des Kontextattributs entspricht.

Diese API unterstützt die Produktinfrastruktur und ist nicht für die direkte Verwendung aus Ihrem Code gedacht.

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

Parameter

ctx
Context

Der anhand des aktuellen Kontextattributs zu überprüfende Kontext.

msg
IConstructionCallMessage

Der Konstruktionsaufruf, dessen Parameter anhand des aktuellen Kontexts überprüft werden sollen.

Gibt zurück

true, wenn der übergebene Kontext passend ist, andernfalls false.

Attribute

Gilt für: