Noda Time
ParseResult<(Of <(<'T>)>)> Class
NamespacesNodaTime.TextParseResult<(Of <(<'T>)>)>

[This is preliminary documentation and is subject to change.]

The result of a parse operation.
Declaration Syntax
C#Visual BasicVisual C++
public sealed class ParseResult<T>
Public NotInheritable Class ParseResult(Of T)
generic<typename T>
public ref class ParseResult sealed
Generic Template Parameters
T
The type which was parsed, such as a LocalDateTime.
Members
All MembersMethodsProperties



IconMemberDescription
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.

Thread Safety
This type is immutable reference type. See the thread safety section of the user guide for more information.
Inheritance Hierarchy
Object
ParseResult<(Of <(<'T>)>)>

Assembly: NodaTime (Module: NodaTime.dll) Version: 1.2.0.0 (1.2.0)