SynchronizationAttribute.IsContextOK Metoda

Definicja

Zwraca wartość logiczną wskazującą, czy parametr kontekstu spełnia wymagania atrybutu kontekstu.

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

Parametry

ctx
Context

Kontekst do sprawdzenia.

msg
IConstructionCallMessage

Informacje zebrane w czasie budowy obiektu powiązanego z kontekstem oznaczonego przez ten atrybut. Element SynchronizationAttribute może sprawdzać, dodawać i usuwać właściwości z kontekstu podczas określania, czy kontekst jest dla niego akceptowalny.

Zwraca

true jeśli przekazany w kontekście ma wartość OK; w przeciwnym razie , false.

Atrybuty

Wyjątki

Parametr ctx or msg to null.

Dotyczy