ViewDataDictionary.FormatValue(Object, String) 方法

定義

使用指定的 來格式化指定的 valueformat

public:
 static System::String ^ FormatValue(System::Object ^ value, System::String ^ format);
public static string FormatValue (object value, string format);
public static string? FormatValue (object? value, string? format);
static member FormatValue : obj * string -> string
Public Shared Function FormatValue (value As Object, format As String) As String

參數

value
Object

要格式化的值。

傳回

格式化 String 的 。

適用於