Format()

String::Format(const SharedPtr<IFormatProvider>&, const String&, const Args&…) method

Formats string in C# style.

template<class...> String System::String::Format(const SharedPtr<IFormatProvider> &fp, const String &format, const Args &... args)

Template parameters

ParameterDescription
ArgsArguments to format string.

Arguments

ParameterTypeDescription
fpconst SharedPtr<IFormatProvider>&Format provider to use to convert arguments to strings.
formatconst String&Format string.
argsconst Args&…Arguments to format string.

String::Format(std::nullptr_t, const String&, const Args&…) method

Formats string in C# style.

template<class...> String System::String::Format(std::nullptr_t, const String &format, const Args &... args)

Template parameters

ParameterDescription
ArgsArguments to format string.

Arguments

ParameterTypeDescription
formatstd::nullptr_tFormat string.
argsconst String&Arguments to format string.

String::Format(std::nullptr_t, const char16_t(&), const Args&…) method

Formats string in C# style.

template<std::size_t,class...> String System::String::Format(std::nullptr_t, const char16_t(&format)[N], const Args &... args)

Template parameters

ParameterDescription
ArgsArguments to format string.

Arguments

ParameterTypeDescription
formatstd::nullptr_tFormat string.
argsconst char16_t(&)Arguments to format string.

String::Format(const String&, const Args&…) method

Formats string in C# style.

template<class...> String System::String::Format(const String &format, const Args &... args)

Template parameters

ParameterDescription
ArgsArguments to format string.

Arguments

ParameterTypeDescription
formatconst String&Format string.
argsconst Args&…Arguments to format string.

String::Format(const String&, const System::ArrayPtr<T>&) method

Formats string in C# style.

template<class T> String System::String::Format(const String &format, const System::ArrayPtr<T> &args)

Template parameters

ParameterDescription
TArguments to format string.

Arguments

ParameterTypeDescription
formatconst String&Format string.
argsconst System::ArrayPtr<T>&Arguments to format string.

See Also