共用方式為


StringFormattingExtensions.FormatInvariant(String, Object[]) Method

Definition

Format string to be displayed.

public static string FormatInvariant (this string format, params object[] args);
static member FormatInvariant : string * obj[] -> string
<Extension()>
Public Function FormatInvariant (format As String, ParamArray args As Object()) As String

Parameters

format
String

A composite format string.

args
Object[]

The object to format.

Returns

A copy of format in which the format item or items have been replaced by the string representation of arg0.

Applies to