Export (0) Print
Expand All

Enum.ToString Method (IFormatProvider)

NOTE: This method is now obsolete.

Converts the value of this instance to its equivalent string representation using the specified format information.

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

[ObsoleteAttribute("The provider argument is not used. Please use ToString().")] 
public string ToString (
	IFormatProvider provider
)
/** @attribute ObsoleteAttribute("The provider argument is not used. Please use ToString().") */ 
public final String ToString (
	IFormatProvider provider
)
ObsoleteAttribute("The provider argument is not used. Please use ToString().") 
public final function ToString (
	provider : IFormatProvider
) : String

Parameters

provider

(Reserved) An IFormatProvider that supplies format information about this instance.

Return Value

The string representation of the name of the value of this instance as specified by provider.

The provider parameter is reserved; it does not participate in this operation and can be specified as a null reference (Nothing in Visual Basic). Therefore, this method is equivalent to the ToString method that takes no parameters.

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile for Pocket PC, Windows Mobile for Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 1.0, 1.1
Obsolete (compiler warning) in 2.0

.NET Compact Framework

Obsolete (compiler warning) in 2.0

Community Additions

ADD
Show:
© 2014 Microsoft