TextInputFormatter.SelectCharacterEncoding(InputFormatterContext) 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.
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
- context
- InputFormatterContext
Returns
An Encoding based on context
's
character set. null
if no supported encoding was found.