Share via


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 .NET Micro Framework version 2.0, 2.5

See Also

Reference

IFormatProvider Interface
IFormatProvider Members
System Namespace