Bagikan melalui


UrlAttribute.IsContextOK(Context, IConstructionCallMessage) Metode

Definisi

Mengembalikan nilai Boolean yang menunjukkan apakah yang ditentukan Context memenuhi UrlAttributepersyaratan.

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 untuk memeriksa atribut konteks saat ini.

msg
IConstructionCallMessage

Panggilan konstruksi, parameter yang perlu diperiksa terhadap konteks saat ini.

Mengembalikan

true jika konteks yang diteruskan dapat diterima; jika tidak, false.

Atribut

Pengecualian

Penelepon langsung tidak memiliki izin infrastruktur.

Berlaku untuk

Lihat juga