NumberFormatInfo.GetFormat(Type) 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
取得指定類型的物件,提供數字格式化服務。
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
參數
傳回
NumberFormatInfo電流 ,若與formatType電流NumberFormatInfo類型相同;否則,。 null
實作
備註
Format(String, IFormatProvider)基礎資料型態所支援的方法,當以參數NumberFormatInfo傳遞IFormatProvider電流時會呼叫此方法。 這個方法會實作 IFormatProvider.GetFormat。