[This is preliminary documentation and is subject to change.]
The result of a parse operation.
| C# | Visual Basic | Visual C++ |
public sealed class ParseResult<T>
Public NotInheritable Class ParseResult(Of T)
generic<typename T> public ref class ParseResult sealed
- T
- The type which was parsed, such as a LocalDateTime.
| All Members | Methods | Properties | |||
| Icon | Member | Description |
|---|---|---|
| Exception |
Returns an exception indicating the cause of the parse failure.
| |
| GetValueOrThrow()()()() |
Returns the value from the parse operation if it was successful, or throws an exception indicating the parse failure
otherwise.
| |
| Success |
Indicates whether the parse operation was successful.
| |
| TryGetValue(T, T%) |
Returns the success value, and sets the out parameter to either
the specified failure value of T or the successful parse result value.
| |
| Value |
Returns the value from the parse operation if it was successful, or throws an exception indicating the parse failure
otherwise.
|
This type is immutable reference type. See the thread safety section of the user guide for more information.
| Object | |
| ParseResult<(Of <(<'T>)>)> | |
Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)