NumberFormatInfo.GetFormat Method

[ This article is for Windows Phone 8 developers. If you’re developing for Windows 10, see the latest documentation. ]

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

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

Syntax

Public Function GetFormat ( _
    formatType As Type _
) As Object
public Object GetFormat(
    Type formatType
)

Parameters

Return Value

Type: System..::.Object
The current NumberFormatInfo object, if formatType is an object of type NumberFormatInfo; otherwise, nullNothingnullptra null reference (Nothing in Visual Basic).

Implements

IFormatProvider..::.GetFormat(Type)

Remarks

The numeric formatting and parsing methods that include a parameter of type IFormatProvider invoke this method when the current NumberFormatInfo object is passed as the IFormatProvider parameter. This method implements IFormatProvider..::.GetFormat.

Version Information

Windows Phone OS

Supported in: 8.1, 8.0, 7.1, 7.0

Platforms

Windows Phone

See Also

Reference

NumberFormatInfo Class

System.Globalization Namespace

IFormatProvider

GetFormat