Table of Contents

Interface IFormatProvider

Namespace
System
Assembly
mscorlib.dll

Provides a mechanism for retrieving an object to control formatting.

public interface IFormatProvider
Extension Methods

Remarks

Available only in mscorlib build with support for System.Reflection.

Methods

GetFormat(Type)

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

object GetFormat(Type formatType)

Parameters

formatType Type

An object that specifies the type of format object to return.

Returns

object

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