GetFormat Method

[This documentation is for preview only, and is subject to change in later releases. Blank topics are included as placeholders.]

Returns an object that provides formatting services for the specified type.

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

'Declaration
Function GetFormat ( _
	formatType As Type _
) As Object

Parameters

formatType
Type: System..::..Type
An object that specifies the type of format object to return.

Return Value

Type: System..::..Object
An instance of the object specified by formatType, if the IFormatProvider implementation can supply that type of object; otherwise, nullNothingnullptrunita null reference (Nothing in Visual Basic).

GetFormat is a callback method that formatting and parsing methods invoke to retrieve information about the format of the input string in parsing operations or the format of the output string in formatting operations. In the formatType parameter, the formatting or parsing method passes the type of object it requires to perform its operation. If the IFormatProvider implementation can supply this formatting or parsing object, it returns that object. If not, it returns nullNothingnullptrunita null reference (Nothing in Visual Basic).

Show: