ContextAttribute.IsContextOK(Context, IConstructionCallMessage) Methode

Definition

Gibt einen booleschen Wert zurück, der angibt, ob der Kontextparameter die Anforderungen des Kontextattributes erfüllt.

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

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

Parameter

ctx
Context

Der Kontext, in dem überprüft werden soll.

ctorMsg
IConstructionCallMessage

Die IConstructionCallMessage , der die Kontexteigenschaft hinzugefügt werden soll.

Gibt zurück

truewenn der übergebene Kontext in Ordnung ist; andernfalls . false

Implementiert

Attribute

Ausnahmen

Entweder ctx oder ctorMsg ist null.

Gilt für: