FormattableStringFactory.Create(String, Object[]) 方法

定義

從複合格式字串和其引數建立 FormattableString 執行個體。Creates a FormattableString instance from a composite format string and its arguments.

public:
 static FormattableString ^ Create(System::String ^ format, ... cli::array <System::Object ^> ^ arguments);
public static FormattableString Create (string format, params object[] arguments);
static member Create : string * obj[] -> FormattableString
Public Shared Function Create (format As String, ParamArray arguments As Object()) As FormattableString

參數

format
String

複合格式字串。A composite format string.

arguments
Object[]

其字串表示要插入結果字串中的引數。The arguments whose string representations are to be inserted in the result string.

傳回

表示複合格式字串和其引數的物件。The object that represents the composite format string and its arguments.

例外狀況

formatnullformat is null.

-或--or- argumentsnullarguments is null.

適用於

另請參閱