Replaces zero or more format specifications with the appropriately formatted value of an object.
Replaces zero or more format specifications with the appropriately formatted value of an object.
[Visual Basic] Overloads Public Shared Function Format(String, Object, Object, Object) As String
[C#] public static string Format(String, Object, Object, Object);
[C++] public: static String* Format(String*, Object, Object, Object);
[JScript] public static function Format(String, Object, Object, Object) : String;
Replaces zero or more format specifications with the appropriately formatted value of an object.
[Visual Basic] Overloads Public Shared Function Format(String, Object, Object) As String
[C#] public static string Format(String, Object, Object);
[C++] public: static String* Format(String*, Object, Object);
[JScript] public static function Format(String, Object, Object) : String;
Replaces zero or more format specifications with the appropriately formatted value of an object.
[Visual Basic] Overloads Public Shared Function Format(String, Object) As String
[C#] public static string Format(String, Object);
[C++] public: static String* Format(String*, Object);
[JScript] public static function Format(String, Object) : String;
Replaces zero or more format specifications with the appropriately formatted value of an object.
[Visual Basic] Overloads Public Shared Function Format(String, Object, Object, Object, Object) As String
[C#] public static string Format(String, Object, Object, Object, Object);
[C++] public: static String* Format(String*, Object, Object, Object, Object);
[JScript] public static function Format(String, Object, Object, Object, Object) : String;
Rreplaces zero or more format specifications with the appropriately formatted value of an object.
[Visual Basic] Overloads Public Shared Function Format(String, Object()) As String
[C#] public static string Format(String, Object[]);
[C++] public: static String* Format(String*, Object[]);
[JScript] public static function Format(String, Object[]) : String;
Replaces zero or more format specifications with the appropriately formatted value of an object.
[Visual Basic] Overloads Public Shared Function Format(String, Object(), IServiceObjectProvider) As String
[C#] public static string Format(String, Object[], IServiceObjectProvider);
[C++] public: static String* Format(String*, Object[], IServiceObjectProvider);
[JScript] public static function Format(String, Object[], IServiceObjectProvider) : String;
If the string assigned to format is "Thank you for your purchase of {0:####} copies of Better Basket Weaving." and arg[0] is an Integer2 with the value 123, then the return value will be:
Note This example shows how to use one of the overloaded versions of Format. For other examples that may be available, see the individual overload topics.
"Thank you for your purchase of 123 copies of Better Basket Weaving." If the String assigned to format is "Brad's dog has {0, -8:G} fleas." and arg[0] is an Integer2 with the value 42, then the return value will be: "Brad's dog has 42 fleas."