指定した String の書式項目を、指定した Object インスタンスの値と等価のテキストに置換します。
String.Format のショートカット関数です。
Namespace: YiaoWang.UtilityAssembly: YiaoWang.Utility (YiaoWang.Utility.dll 内) バージョン: 2.11.5.7 (2.11.5.7)
Syntax
C# |
---|
public static string SFormat(
string format,
Object arg0
) |
Visual Basic |
---|
Public Shared Function SFormat ( _
format As String, _
arg0 As Object _
) As String |
Parameters
- format
- Type: System..::..String
複合書式指定文字列。
- arg0
- Type: System..::..Object
書式設定する Object。
Return Value
1 番目の書式項目が、arg0 と等価の String により置換された format のコピー。
Remarks
Exceptions
Exception | Condition |
---|
System..::..ArgumentNullException | format が null 参照 (Visual Basic では Nothing) です。 |
System..::..FormatException | format の書式項目が無効です。 または 書式設定する引数を示す数が 0 より小さいか、書式設定する指定されたオブジェクトの数以上です。 |
See Also