NumberFormatInfo.GetFormat(Type) Yöntem

Tanım

Sayı biçimlendirme hizmeti sağlayan belirtilen türdeki bir nesneyi alır.

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

Parametreler

formatType
Type

Type Gerekli biçimlendirme hizmetinin.

Döndürülenler

geçerli NumberFormatInfo, geçerli NumberFormatInfotürüyle aynıysa formatType ; değilse, null.

Uygulamalar

Açıklamalar

Format(String, IFormatProvider) Temel veri türleri tarafından desteklenen yöntemler, geçerli NumberFormatInfo parametre olarak IFormatProvider geçirildiğinde bu yöntemi çağırır. Bu yöntem uygular IFormatProvider.GetFormat.

Şunlara uygulanır

Ayrıca bkz.