Metode System::ICustomFormatter::Format

ICustomFormatter::Format method

Mengembalikan representasi string dari nilai yang diwakili oleh objek saat ini menggunakan format yang ditentukan.

virtual System::String System::ICustomFormatter::Format(System::String format, System::SharedPtr<System::Object> arg, System::SharedPtr<System::IFormatProvider> formatProvider)=0
ParameterTipeDeskripsi
formatSystem::StringFormat string
argSystem::SharedPtr<System::Object>Objek yang akan diformat
formatProviderSystem::SharedPtr<System::IFormatProvider>Objek yang menyediakan informasi pemformatan

ReturnValue

Representasi string dari arg yang diformat sesuai dengan format yang ditentukan oleh format dan formatProvider

Lihat Juga