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

資料插槽名稱。

傳回

本機資料插槽。

屬性

備註

如果尚未使用名稱,則會配置新的位置。 具名數據位置是公用的,任何人都可以操作。

適用於