SynchronizationAttribute.IsContextOK Methode

Definition

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

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

Parameter

ctx
Context

Der zu überprüfende Kontext.

msg
IConstructionCallMessage

Die zur Konstruktionszeit des kontextbezogenen Objekts gesammelten Informationen, die durch dieses Attribut markiert wurden. Beim Bestimmen der Zulässigkeit des Kontexts kann das SynchronizationAttribute Eigenschaften aus dem Kontext überprüfen, hinzufügen und aus diesem entfernen.

Gibt zurück

Boolean

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

Attribute

Ausnahmen

Der ctx-Parameter oder der msg-Parameter ist null.

Gilt für