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

数据槽名称。

返回

本地数据槽。

属性

注解

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

适用于