Export (0) Print
Expand All

Enum.ToString Method (String, IFormatProvider)

Note: This API is now obsolete.

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.

Silverlight

Obsolete (compiler warning) in 5
Obsolete (compiler warning) in 4
Obsolete (compiler warning) in 3

Silverlight for Windows Phone

Obsolete (compiler warning) in Windows Phone OS 7.1
Obsolete (compiler warning) in Windows Phone OS 7.0

XNA Framework

Obsolete (compiler warning) in Xbox 360
Obsolete (compiler warning) in Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show:
© 2015 Microsoft