共用方式為


SessionExtensions.Get(ISession, String) 方法

定義

ISession 取得位元組陣列值。

public:
[System::Runtime::CompilerServices::Extension]
 static cli::array <System::Byte> ^ Get(Microsoft::AspNetCore::Http::ISession ^ session, System::String ^ key);
public static byte[] Get (this Microsoft.AspNetCore.Http.ISession session, string key);
public static byte[]? Get (this Microsoft.AspNetCore.Http.ISession session, string key);
static member Get : Microsoft.AspNetCore.Http.ISession * string -> byte[]
<Extension()>
Public Function Get (session As ISession, key As String) As Byte()

參數

session
ISession

ISession

key
String

要讀取的索引鍵。

傳回

Byte[]

適用於