HtmlHelper.FormatValue(Object, String) 方法

定义

设置值的格式。

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

参数

value
Object

值。

format
String

格式字符串。

返回

带格式的值。

适用于