UrlAttribute.IsContextOK(Context, IConstructionCallMessage) Método

Definição

Retorna um valor booliano que indica se o Context especificado cumpre os requisitos de UrlAttribute.Returns a Boolean value that indicates whether the specified Context meets UrlAttribute's requirements.

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

Parâmetros

ctx
Context

O contexto com relação ao qual verificar o atributo de contexto atual.The context to check against the current context attribute.

msg
IConstructionCallMessage

A chamada de construção, cujos parâmetros precisam ser verificados em relação ao contexto atual.The construction call, the parameters of which need to be checked against the current context.

Retornos

Boolean

true se o contexto passado for aceitável; caso contrário, false.true if the passed-in context is acceptable; otherwise, false.

Atributos

Exceções

O chamador imediato não tem permissão de infraestrutura.The immediate caller does not have infrastructure permission.

Aplica-se a

Confira também