Share via


SynchronizationAttribute.IsContextOK Metoda

Definice

Vrátí logickou hodnotu označující, zda parametr kontextu splňuje požadavky atributu kontextu.

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

Kontext, který chcete zkontrolovat.

msg
IConstructionCallMessage

Informace shromážděné v době vytváření objektu vázaného na kontext označený tímto atributem Objekt SynchronizationAttribute může kontrolovat, přidávat a odebírat vlastnosti z kontextu a zároveň určovat, jestli je pro něj kontext přijatelný.

Návraty

truepokud předaný v kontextu je v pořádku; v opačném případě . false

Atributy

Výjimky

Parametr ctx nebo msg je null.

Platí pro