The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

NumberFormatInfo.GetFormat Method

Gets an object of the specified type that provides a number formatting service.

[Visual Basic]
Public Overridable Function GetFormat( _
   ByVal formatType As Type _
) As Object Implements IFormatProvider.GetFormat
public virtual object GetFormat(
 Type formatType
public: virtual Object* GetFormat(
 Type* formatType
public function GetFormat(
   formatType : Type
) : Object;


The Type of the required formatting service.

Return Value

The current NumberFormatInfo, if formatType is the same as the type of the current NumberFormatInfo; otherwise, a null reference (Nothing in Visual Basic).




The Format(String, IFormatProvider) methods supported by the base data types invoke this method when the current NumberFormatInfo is passed as the IFormatProvider parameter. This method implements IFormatProvider.GetFormat.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework, Common Language Infrastructure (CLI) Standard

See Also

NumberFormatInfo Class | NumberFormatInfo Members | System.Globalization Namespace | IFormatProvider | GetFormat

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft