Bahasa

SynchronizationAttribute.IsContextOK Metode

Definisi

Mengembalikan nilai Boolean yang menunjukkan apakah parameter konteks memenuhi persyaratan atribut konteks.

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

Konteks yang akan diperiksa.

msg
IConstructionCallMessage

Informasi yang dikumpulkan pada waktu konstruksi objek terikat konteks yang ditandai oleh atribut ini. SynchronizationAttribute dapat memeriksa, menambahkan, dan menghapus properti dari konteks sambil menentukan apakah konteks dapat diterima olehnya.

Mengembalikan

true jika yang diteruskan dalam konteks ok; jika tidak, false.

Atribut

Pengecualian

Parameter ctx atau msg adalah null.

Berlaku untuk