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[]

适用于