Interface IFormatProvider
Provides a mechanism for retrieving an object to control formatting.
Namespace: System
Assembly: mscorlib.dll
Syntax
public interface IFormatProvider
Remarks
Available only in mscorlib build with support for System.Reflection.
Methods
| Improve this Doc View SourceGetFormat(Type)
Returns an object that provides formatting services for the specified type.
Declaration
object GetFormat(Type formatType)
Parameters
Type | Name | Description |
---|---|---|
Type | formatType | An object that specifies the type of format object to return. |
Returns
Type | Description |
---|---|
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). |