IFormatProvider.GetFormat Method

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

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

Syntax

public Object GetFormat (
         Type formatType
)

Parameters

  • formatType
    An object that specifies the type of format object you want to get.

Return Value

The current object, if the object you want to get has the same formatType parameter as the current object; otherwise, a null reference.

Remarks

Use this method in classes that use format objects in methods that either generate or parse string representations of objects.

Version Information

Available in the .NET Micro Framework versions 2.0, 2.5, 3.0, 4.0, 4.1, and 4.2.

See Also

Reference

IFormatProvider Interface
IFormatProvider Members
System Namespace