Freigeben über


IContextAttribute.IsContextOK-Methode

Diese Methode unterstützt die .NET Framework-Infrastruktur und ist nicht für die direkte Verwendung in Code bestimmt.

Gibt einen booleschen Wert zurück, der angibt, ob der angegebene Kontext den Anforderungen des Kontextattributs entspricht.

Namespace: System.Runtime.Remoting.Contexts
Assembly: mscorlib (in mscorlib.dll)

Syntax

'Declaration
Function IsContextOK ( _
    ctx As Context, _
    msg As IConstructionCallMessage _
) As Boolean
'Usage
Dim instance As IContextAttribute
Dim ctx As Context
Dim msg As IConstructionCallMessage
Dim returnValue As Boolean

returnValue = instance.IsContextOK(ctx, msg)
bool IsContextOK (
    Context ctx,
    IConstructionCallMessage msg
)
bool IsContextOK (
    Context^ ctx, 
    IConstructionCallMessage^ msg
)
boolean IsContextOK (
    Context ctx, 
    IConstructionCallMessage msg
)
function IsContextOK (
    ctx : Context, 
    msg : IConstructionCallMessage
) : boolean

Parameter

  • ctx
    Der anhand des aktuellen Kontextattributs zu überprüfende Kontext.
  • msg
    Der Konstruktionsaufruf, dessen Parameter anhand des aktuellen Kontexts überprüft werden sollen.

Rückgabewert

true, wenn der übergebene Kontext passend ist, andernfalls false.

Plattformen

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

IContextAttribute-Schnittstelle
IContextAttribute-Member
System.Runtime.Remoting.Contexts-Namespace