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



Teradata.Client.Provider Namespace > TdTimeWithTimeZone Structure > TryParse Method : TryParse(String,IFormatProvider,TdTimeWithTimeZone) Method
The string that contains the time representation.
An IFormatProvider that supplies culture specific information about the format of value.
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, _
   ByVal provider As IFormatProvider, _
   ByRef result As TdTimeWithTimeZone _
) As Boolean
'Usage
 
Dim value As String
Dim provider As IFormatProvider
Dim result As TdTimeWithTimeZone
Dim value As Boolean
 
value = TdTimeWithTimeZone.TryParse(value, provider, result)
public static bool TryParse( 
   string value,
   IFormatProvider provider,
   out TdTimeWithTimeZone result
)
public:
static bool TryParse( 
   String^ value,
   IFormatProvider^ provider,
   [Out] TdTimeWithTimeZone result
) 

Parameters

value
The string that contains the time representation.
provider
An IFormatProvider that supplies culture specific information about the format of value.
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
Parse(String,IFormatProvider) Method