SynchronizationAttribute.IsContextOK Methode

Definition

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

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

Informationen, die zum Bauzeitpunkt des kontextgebundenen Objekts gesammelt wurden, das durch dieses Attribut gekennzeichnet ist. Die SynchronizationAttribute Eigenschaften können überprüft, hinzugefügt und aus dem Kontext entfernt werden, während ermittelt wird, ob der Kontext zulässig ist.

Gibt zurück

truewenn der übergebene Kontext OK ist; andernfalls . false

Attribute

Ausnahmen

Der ctx Parameter ist msgnull.

Gilt für: