語言

NumberFormatInfo.GetFormat(Type) 方法

定義

取得指定類型的物件,提供數字格式化服務。

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

參數

formatType
Type

Type所需的格式化服務。

傳回

NumberFormatInfo電流 ,若與formatType電流NumberFormatInfo類型相同;否則,。 null

實作

備註

Format(String, IFormatProvider)基礎資料型態所支援的方法,當以參數NumberFormatInfo傳遞IFormatProvider電流時會呼叫此方法。 這個方法會實作 IFormatProvider.GetFormat。

適用於

另請參閱