Share via


SessionExtensions.Get(ISession, String) Method

Definition

Gets a byte-array value from 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()

Parameters

session
ISession

The ISession.

key
String

The key to read.

Returns

Byte[]

Applies to