Npgsql Api Docs |

# NpgsqlInterval.TryParse Method

Attempt to parse a String to produce an NpgsqlInterval.

[Visual Basic]
Public Shared Function TryParse( _
ByVal str As String, _
ByRef result As NpgsqlInterval _
) As Boolean
[C#]
public static bool TryParse(
string str,
out NpgsqlInterval result
);

#### Parameters

str
  The String to parse.
result
  (out) The NpgsqlInterval produced, or Zero if the parsing failed.

#### Return Value

true if the parsing succeeded, false otherwise.

#### See Also

NpgsqlInterval Class | NpgsqlTypes Namespace