Send feedback on this topic.
Teradata.Client.Provider
TryParse(String,TdTime) Method



Teradata.Client.Provider Namespace > TdTime Structure > TryParse Method : TryParse(String,TdTime) Method
The string that contains the time representation.
The TdTime representation of the time contained in the specified string.
A time contained in a string is converted to a TdTime representation.
Syntax
'Declaration
 
Public Overloads Shared Function TryParse( _
   ByVal value As String, _
   ByRef result As TdTime _
) As Boolean
'Usage
 
Dim value As String
Dim result As TdTime
Dim value As Boolean
 
value = TdTime.TryParse(value, result)
public static bool TryParse( 
   string value,
   out TdTime result
)
public:
static bool TryParse( 
   String^ value,
   [Out] TdTime result
) 

Parameters

value
The string that contains the time representation.
result
The TdTime representation of the time contained in the specified string.

Return Value

A Boolean is returned that indicates the success of the conversion. true indicates that the conversion was successful and that the conversion is returned through the result parameter. false indicates that the conversion failed.
Remarks

TryParse is the same as Parse except that an exception does not get thrown when the conversion fails.

Formatting information contained in the DateTimeFormatInfo object is used to parse the string.

If the string is either null or empty, a TdTime.Null is returned.

If the conversion fails the result parameter will be set to TdTime.MinValue.

For more information refer to TdTime.Parse.

Requirements

Target Platforms: Windows 8.1, Windows 10, Windows Server 2012 R2, Windows Server 2016, Windows Server 2019

See Also

Reference

TdTime Structure
TdTime Members
Overload List