IContextAttribute.IsContextOK(Context, IConstructionCallMessage) Metod
Definition
Viktigt
En del information gäller för förhandsversionen av en produkt och kan komma att ändras avsevärt innan produkten blir allmänt tillgänglig. Microsoft lämnar inga garantier, uttryckliga eller underförstådda, avseende informationen som visas här.
Returnerar ett booleskt värde som anger om den angivna kontexten uppfyller kontextattributets krav.
Detta API stöder produktinfrastrukturen och är inte avsett att användas direkt från koden.
public:
bool IsContextOK(System::Runtime::Remoting::Contexts::Context ^ ctx, System::Runtime::Remoting::Activation::IConstructionCallMessage ^ msg);
public bool IsContextOK(System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
[System.Security.SecurityCritical]
public bool IsContextOK(System.Runtime.Remoting.Contexts.Context ctx, System.Runtime.Remoting.Activation.IConstructionCallMessage msg);
abstract member IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
[<System.Security.SecurityCritical>]
abstract member IsContextOK : System.Runtime.Remoting.Contexts.Context * System.Runtime.Remoting.Activation.IConstructionCallMessage -> bool
Public Function IsContextOK (ctx As Context, msg As IConstructionCallMessage) As Boolean
Parametrar
- ctx
- Context
Kontexten som ska kontrolleras mot det aktuella kontextattributet.
Bygganropet, vars parametrar måste kontrolleras mot den aktuella kontexten.
Returer
trueom det som skickas i kontexten är okej; annars . false
- Attribut