TryParse()
Contents
[
Hide
]TimeSpan::TryParse(const String&, TimeSpan&) method
Converts string to equivalent TimeSpan object and returns result of conversion.
static bool System::TimeSpan::TryParse(const String &input, TimeSpan &result)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
result | TimeSpan& | Time interval that corresponds to string. |
Return Value
True if string was converted successfully; otherwise, false.
TimeSpan::TryParse(const String&, const SharedPtr<IFormatProvider>&, TimeSpan&) method
Converts string to equivalent TimeSpan object using the specified format provider and returns result of conversion.
static bool System::TimeSpan::TryParse(const String &input, const SharedPtr<IFormatProvider> &provider, TimeSpan &result)
Arguments
Parameter | Type | Description |
---|---|---|
input | const String& | Input string. |
provider | const SharedPtr<IFormatProvider>& | Format provider that supplies culture-specific formatting information. |
result | TimeSpan& | Time interval that corresponds to string. |
Return Value
True if string was converted successfully; otherwise, false.
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)
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)
TimeSpan::TryParse(const String&, std::nullptr_t, TimeSpan&) method
static bool System::TimeSpan::TryParse(const String &input, std::nullptr_t, TimeSpan &result)
See Also
- Typedef SharedPtr
- Class String
- Class TimeSpan
- Class IFormatProvider
- Class CultureInfo
- Class DateTimeFormatInfo
- Namespace System
- Library Aspose.Slides