NumberFormatInfo.GetFormat(Type) Metoda

Definicja

Pobiera obiekt określonego typu, który zapewnia usługę formatowania liczb.

public:
 virtual System::Object ^ GetFormat(Type ^ formatType);
public object GetFormat (Type formatType);
public object? GetFormat (Type? formatType);
abstract member GetFormat : Type -> obj
override this.GetFormat : Type -> obj
Public Function GetFormat (formatType As Type) As Object

Parametry

formatType
Type

Wymagana Type usługa formatowania.

Zwraca

Bieżący NumberFormatInfoparametr , jeśli formatType jest taki sam jak typ bieżącego NumberFormatInfo; w przeciwnym razie . null

Implementuje

Uwagi

Metody Format(String, IFormatProvider) obsługiwane przez podstawowe typy danych wywołują tę metodę, gdy bieżący NumberFormatInfo jest przekazywany jako IFormatProvider parametr. Ta metoda implementuje metodę IFormatProvider.GetFormat.

Dotyczy

Zobacz też