IHtmlHelper.FormatValue(Object, String) IHtmlHelper.FormatValue(Object, String) IHtmlHelper.FormatValue(Object, String) Method

Definition

Formats the value.

public string FormatValue (object value, string format);
abstract member FormatValue : obj * string -> string
Public Function FormatValue (value As Object, format As String) As String

Parameters

value
Object Object Object

The value.

format
String String 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.

Remarks

Converts value to a String directly if format is null or empty.

Applies to