NumberFormatInfo.GetFormat(Type) Metodo
Definizione
Ottiene un oggetto del tipo specificato che fornisce un servizio di formattazione dei numeri.Gets an object of the specified type that provides a number formatting service.
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
Parametri
- formatType
- Type
Oggetto Type del servizio di formattazione richiesto.The Type of the required formatting service.
Restituisce
Oggetto NumberFormatInfo corrente, se formatType
corrisponde al tipo dell'oggetto NumberFormatInfo corrente; in caso contrario, null
.The current NumberFormatInfo, if formatType
is the same as the type of the current NumberFormatInfo; otherwise, null
.
Implementazioni
Commenti
I Format(String, IFormatProvider)
metodi supportati dai tipi di dati di base richiamano questo metodo quando l'oggetto corrente NumberFormatInfo viene passato come IFormatProvider parametro.The Format(String, IFormatProvider)
methods supported by the base data types invoke this method when the current NumberFormatInfo is passed as the IFormatProvider parameter. Questo metodo implementa IFormatProvider.GetFormat.This method implements IFormatProvider.GetFormat.