This documentation is archived and is not being maintained.

Enum.IConvertible.ToString Method

Visual Studio 2008

This API supports the .NET Framework infrastructure and is not intended to be used directly from your code.

Converts the current value to a string based on the underlying type.

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

string IConvertible.ToString(
	IFormatProvider provider
)

Parameters

provider
Type: System.IFormatProvider

An object that supplies culture-specific formatting information.

Return Value

Type: System.String
The converted value.

Implements

IConvertible.ToString(IFormatProvider)

Uses Convert to perform the conversion.

Windows CE, Windows Mobile for Smartphone, Windows Mobile for Pocket PC

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Compact Framework

Supported in: 1.0
Show: