IHtmlHelper.FormatValue(Object, String) Method

Definition

Formats the value.

public:
 System::String ^ FormatValue(System::Object ^ value, System::String ^ format);
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

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.

Remarks

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

Applies to