Freigeben über


Context.AllocateNamedDataSlot-Methode

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

Reserviert einen benannten Datenslot.

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

Syntax

'Declaration
Public Shared Function AllocateNamedDataSlot ( _
    name As String _
) As LocalDataStoreSlot
'Usage
Dim name As String
Dim returnValue As LocalDataStoreSlot

returnValue = Context.AllocateNamedDataSlot(name)
public static LocalDataStoreSlot AllocateNamedDataSlot (
    string name
)
public:
static LocalDataStoreSlot^ AllocateNamedDataSlot (
    String^ name
)
public static LocalDataStoreSlot AllocateNamedDataSlot (
    String name
)
public static function AllocateNamedDataSlot (
    name : String
) : LocalDataStoreSlot

Parameter

  • name
    Der erforderliche Name für den Datenslot.

Rückgabewert

Ein lokales Datenslotobjekt.

Hinweise

Der Slot wird in allen Kontexten reserviert. Benannte Datenslots sind öffentlich und können beliebig bearbeitet werden.

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

Context-Klasse
Context-Member
System.Runtime.Remoting.Contexts-Namespace