Context.AllocateNamedDataSlot(String) Context.AllocateNamedDataSlot(String) Context.AllocateNamedDataSlot(String) Context.AllocateNamedDataSlot(String) Method

定义

分配已命名的数据槽。Allocates a named data slot.

此 API 支持产品基础结构,不能在代码中直接使用。

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

参数

name
String String String String

数据槽所需的名称。The required name for the data slot.

返回

局部数据槽对象。A local data slot object.

注解

在所有上下文上都分配了槽。The slot is allocated on all the contexts. 命名的数据槽是公共的, 可供任何人操作。Named data slots are public and can be manipulated by anyone.

适用于