Metodo System::TimeSpan::TryParse
Contenuti
[
Nascondere
]TimeSpan::TryParse(const String&, const SharedPtr<Globalization::CultureInfo>&, TimeSpan&) method
static bool System::TimeSpan::TryParse(const String &input, const SharedPtr<Globalization::CultureInfo> &culture, TimeSpan &result)
Vedi anche
- Class String
- Typedef SharedPtr
- Class CultureInfo
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++
TimeSpan::TryParse(const String&, const SharedPtr<Globalization::DateTimeFormatInfo>&, TimeSpan&) method
static bool System::TimeSpan::TryParse(const String &input, const SharedPtr<Globalization::DateTimeFormatInfo> &dtfi, TimeSpan &result)
Vedi anche
- Class String
- Typedef SharedPtr
- Class DateTimeFormatInfo
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++
TimeSpan::TryParse(const String&, const SharedPtr<IFormatProvider>&, TimeSpan&) method
Converte la stringa in un oggetto TimeSpan equivalente utilizzando il provider di formato specificato e restituisce il risultato della conversione.
static bool System::TimeSpan::TryParse(const String &input, const SharedPtr<IFormatProvider> &provider, TimeSpan &result)
| Parametro | Tipo | Descrizione |
|---|---|---|
| input | const String& | Stringa di input. |
| provider | const SharedPtr<IFormatProvider>& | Provider di formattazione che fornisce informazioni di formattazione specifiche per la cultura. |
| risultato | TimeSpan& | Intervallo di tempo che corrisponde alla stringa. |
ReturnValue
True se la stringa è stata convertita correttamente; altrimenti, false.
Vedi anche
- Class String
- Typedef SharedPtr
- Class IFormatProvider
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++
TimeSpan::TryParse(const String&, std::nullptr_t, TimeSpan&) method
static bool System::TimeSpan::TryParse(const String &input, std::nullptr_t, TimeSpan &result)
Vedi anche
- Class String
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++
TimeSpan::TryParse(const String&, TimeSpan&) method
Converte la stringa in un oggetto TimeSpan equivalente e restituisce il risultato della conversione.
static bool System::TimeSpan::TryParse(const String &input, TimeSpan &result)
| Parametro | Tipo | Descrizione |
|---|---|---|
| input | const String& | Stringa di input. |
| risultato | TimeSpan& | Intervallo di tempo che corrisponde alla stringa. |
ReturnValue
True se la stringa è stata convertita correttamente; altrimenti, false.
Vedi anche
- Class String
- Class TimeSpan
- Class TimeSpan
- Namespace System
- Library Aspose.Font for C++