ToString Method (String, IFormatProvider)
Collapse the table of content
Expand the table of content

Enum.ToString Method (String, IFormatProvider)

Note: This API is now obsolete.

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

This method overload is obsolete; use Enum.ToString(String).

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

[ObsoleteAttribute("The provider argument is not used. Please use ToString(String).")]
public string ToString(
	string format,
	IFormatProvider provider
)

Parameters

format
Type: System.String
A format specification.
provider
Type: System.IFormatProvider
(obsolete)

Return Value

Type: System.String
The string representation of the value of this instance, as specified by format.

Implements

IFormattable.ToString(String, IFormatProvider)

ExceptionCondition
FormatException

format does not contain a valid format specification.

The provider parameter is obsolete, specify only a format.

Windows Phone OS

Obsolete (compiler warning) in 8.1
Obsolete (compiler warning) in 8.0
Obsolete (compiler warning) in 7.1
Obsolete (compiler warning) in 7.0

Windows Phone

Show:
© 2016 Microsoft