HtmlHelper.FormatValue(Object, String) Method

Definition

Formats the value.

C#
public string FormatValue (object value, string format);

Parameters

value
Object

The value.

format
String

The format string (see https://msdn.microsoft.com/en-us/library/txafckwd.aspx) used to format the return value.

Returns

A String containing the formatted value.

Implements

Applies to

Product Versions
ASP.NET Core 1.0, 1.1, 2.0, 2.1, 2.2, 3.0, 3.1, 5.0, 6.0, 7.0, 8.0, 9.0