asp.net.ph

CultureInfo.GetFormat Method

System.Globalization Namespace   CultureInfo Class


Gets an object that defines how to format the specified type.

[ VB ]
Overridable Public Function GetFormat ( _
   ByVal formatType As Type _
) As Object Implements IFormatProvider.GetFormat

[ C# ]
public virtual object GetFormat ( 
   Type formatType
);

[ C++ ]
public: virtual Object* GetFormat ( 
   Type* formatType
);

[ JScript ]
function GetFormat ( 
   formatType : Type
) : Object;

Parameters

formatType
The Type for which to get a formatting object. This method only supports the NumberFormatInfo and DateTimeFormatInfo types.

Return Value

A NumberFormatInfo object containing the default number format information for the current CultureInfo, if formatType is the Type object for the NumberFormatInfo class.

-or-

A DateTimeFormatInfo object containing the default date and time format information for the current CultureInfo, if formatType is the Type object for the DateTimeFormatInfo class.

-or-

A null reference ( Nothing in Visual Basic ), if formatType is any other object.

Implements

IFormatProvider.GetFormat

Remarks

GetFormat implements IFormatProvider.GetFormat.

NumberFormatInfo provides the culture-specific numeric format used in conjunction with the Format methods in the base data types. DateTimeFormatInfo controls how the date and time values are formatted for a specific culture.

See Also

CultureInfo Members   Type   NumberFormatInfo   DateTimeFormatInfo   NumberFormat   DateTimeFormat Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph