System Namespace IFormatProvider Interface
Gets an object that provides formatting services for the specified type.
[ VB ]
Function GetFormat ( _
ByVal formatType As Type _
) As Object
[ C# ]
object GetFormat (
Type formatType
);
[ C++ ]
Object* GetFormat (
Type* formatType
);
[ JScript ]
function GetFormat (
formatType : Type
) : Object;
- formatType
- An object that specifies the type of format object to get.
A format object of type formatType.
-or-
A format object for the current culture if no format object is available or formatType is a null reference ( Nothing in Visual Basic ).
Implement this method in classes that use format objects in methods that either generate or parse string representations of objects. The ToString and Parse methods are examples of these types of methods.
For more information, see the CultureInfo.CurrentCulture topic.
IFormatProvider Members