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基于 context的字符集的 。 null 如果未找到受支持的编码,则为 。

适用于