Context.AllocateNamedDataSlot(String) Méthode

Définition

Alloue un emplacement de données nommé.

Cette API prend en charge l'infrastructure du produit et n'est pas destinée à être utilisée directement à partir de votre code.

public:
 static LocalDataStoreSlot ^ AllocateNamedDataSlot(System::String ^ name);
public static LocalDataStoreSlot AllocateNamedDataSlot (string name);
[System.Security.SecurityCritical]
public static LocalDataStoreSlot AllocateNamedDataSlot (string name);
static member AllocateNamedDataSlot : string -> LocalDataStoreSlot
[<System.Security.SecurityCritical>]
static member AllocateNamedDataSlot : string -> LocalDataStoreSlot
Public Shared Function AllocateNamedDataSlot (name As String) As LocalDataStoreSlot

Paramètres

name
String

Nom requis pour l'emplacement de données.

Retours

Objet d'emplacement de données local.

Attributs

Remarques

L’emplacement est alloué sur tous les contextes. Les emplacements de données nommés sont publics et peuvent être manipulés par n’importe qui.

S’applique à