SessionExtensions.GetString(ISession, String) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Gets a string value from ISession.
public:
[System::Runtime::CompilerServices::Extension]
static System::String ^ GetString(Microsoft::AspNetCore::Http::ISession ^ session, System::String ^ key);
public static string GetString (this Microsoft.AspNetCore.Http.ISession session, string key);
public static string? GetString (this Microsoft.AspNetCore.Http.ISession session, string key);
static member GetString : Microsoft.AspNetCore.Http.ISession * string -> string
<Extension()>
Public Function GetString (session As ISession, key As String) As String
Parameters
- key
- String
The key to read.