Share via


Context.GetNamedDataSlot(String) 方法

定义

查找命名的数据槽。

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

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

参数

name
String

数据槽名称。

返回

局部数据槽。

属性

注解

如果尚未使用该名称,则会分配一个新槽。 命名数据槽是公共的,任何人都可以操作。

适用于