TextInputFormatter.SelectCharacterEncoding(InputFormatterContext) Method

Definition

Returns an Encoding based on context's character set.

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

Parameters

Returns

An Encoding based on context's character set. null if no supported encoding was found.

Applies to