「ASP.NET Coreのセッションに文字列を入れる」の版間の差分
imported>Administrator ページの作成:「ASP .NET CoreのSessionクラスは標準でbyte[]を引数にとるSetメソッドしかない。 HttpContext.Session.Set(string key, byte[] value) ウェブ...」 |
Administrator (トーク | 投稿記録) 編集の要約なし |
||
| (他の1人の利用者による、間の4版が非表示) | |||
| 9行目: | 9行目: | ||
HttpContext.Session.SetString(string key, string value) | HttpContext.Session.SetString(string key, string value) | ||
<source> | <source lang="csharp"> | ||
using System; | using System; | ||
using System.Collections.Generic; | using System.Collections.Generic; | ||
| 28行目: | 28行目: | ||
</source> | </source> | ||
[[category: ASP .NET Core]] | [[category: ASP.NET Core]] | ||