共用方式為


TextInputFormatter.SelectCharacterEncoding(InputFormatterContext) 方法

定義

Encoding根據 context 的字元集傳回 。

protected:
 System::Text::Encoding ^ SelectCharacterEncoding(Microsoft::AspNetCore::Mvc::Formatters::InputFormatterContext ^ context);
protected System.Text.Encoding SelectCharacterEncoding (Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context);
protected System.Text.Encoding? SelectCharacterEncoding (Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext context);
member this.SelectCharacterEncoding : Microsoft.AspNetCore.Mvc.Formatters.InputFormatterContext -> System.Text.Encoding
Protected Function SelectCharacterEncoding (context As InputFormatterContext) As Encoding

參數

傳回

Encoding,以 的字元集為基礎 contextnull 如果找不到支援的編碼方式,則為 。

適用於