FormattableString::Format Property

.NET Framework (current version)
 

Returns the composite format string.

Namespace:   System
Assembly:  mscorlib (in mscorlib.dll)

public:
property String^ Format {
	virtual String^ get() abstract;
}

Property Value

Type: System::String^

The composite format string.

A composite format string consists of zero or more runs of fixed text intermixed with one or more format items, which are indicated by an index number delimited with brackets (for example, {0}). The index of each format item corresponds to an argument in an object list that follows the composite format string. For example, in the following statement:

No code example is currently available or this language may not be supported.

the composite format string is "Name = {0}, hours = {1:hh}".

Universal Windows Platform
Available since 10
.NET Framework
Available since 4.6
Return to top
Show: