110,825
社区成员
![](https://csdnimg.cn/release/cmsfe/public/img/topic.427195d5.png)
![](https://csdnimg.cn/release/cmsfe/public/img/me.40a70ab0.png)
![](https://csdnimg.cn/release/cmsfe/public/img/task.87b52881.png)
![](https://csdnimg.cn/release/cmsfe/public/img/share-circle.3e0b7822.png)
//
// Summary:
// Replaces the format item in a specified string with the string representation
// of a corresponding object in a specified array.
//
// Parameters:
// format:
// A composite format string.
//
// args:
// An object array that contains zero or more objects to format.
//
// Returns:
// A copy of format in which the format items have been replaced by the string
// representation of the corresponding objects in args.
//
// Exceptions:
// System.ArgumentNullException:
// format or args is null.
//
// System.FormatException:
// format is invalid.-or- The index of a format item is less than zero, or greater
// than or equal to the length of the args array.
public static string Format(string format, params object[] args);