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



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

Parameters

value
The string that contains the time representation.
result
The TdTimeWithTimeZone 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 TdTimeWithTimeZone.Null is returned .

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

For more information refer to TdTimeWithTimeZone.Parse.

Requirements

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

See Also

Reference

TdTimeWithTimeZone Structure
TdTimeWithTimeZone Members
Overload List