NumberFormatInfo.GetFormat(Type) Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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
Parameters
Returns
The current NumberFormatInfo, if formatType
is the same as the type of the current NumberFormatInfo; otherwise, null
.
Implements
Remarks
The Format(String, IFormatProvider)
methods supported by the base data types invoke this method when the current NumberFormatInfo is passed as the IFormatProvider parameter. This method implements IFormatProvider.GetFormat.
Applies to
See also
.NET
フィードバック
https://aka.ms/ContentUserFeedback。
近日公開予定: 2024 年を通じて、コンテンツのフィードバック メカニズムとして GitHub イシューを段階的に廃止し、新しいフィードバック システムに置き換えます。 詳細については、以下を参照してください:フィードバックの送信と表示