Context.GetNamedDataSlot(String) Context.GetNamedDataSlot(String) Context.GetNamedDataSlot(String) Context.GetNamedDataSlot(String) Method

定义

查找命名的数据槽。Looks up a named data slot.

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

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

参数

name
String String String String

数据槽名称。The data slot name.

返回

注解

如果未使用该名称, 则会分配新的槽。If the name has not been used, a new slot is allocated. 命名的数据槽是公共的, 可供任何人操作。Named data slots are public and can be manipulated by anyone.

适用于