Export (0) Print
Expand All

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
[C#]
public virtual object GetFormat(
 Type formatType
);
[C++]
public: virtual Object* GetFormat(
 Type* formatType
);
[JScript]
public function GetFormat(
   formatType : Type
) : Object;

Parameters

formatType
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).

Implements

IFormatProvider.GetFormat

Remarks

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.

Requirements

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

Show:
© 2014 Microsoft