Context.AllocateNamedDataSlot(String) 方法

定義

配置具名資料插槽。

此 API 支援此產品基礎結構,但無法直接用於程式碼之中。

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

參數

name
String

資料插槽的必要名稱。

傳回

本機資料插槽物件。

屬性

備註

此位置會配置於所有內容上。 具名資料位置是公用的,任何人都可以操作。

適用於