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



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

Parameters

value
The string that contains the date representation.
provider
An IFormatProvider that supplies culture specific information about the format of value.
result
The TdTimestampWithTimeZone representation of the timestamp 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 TdTimestampWithTimeZone.Null is returned.

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

For more information refer to TdTimestampWithTimeZone.Parse.

Requirements
ProductVersionsPlatforms
.NET2.1, 3.1, 6Windows, Linux, MacOS
.NET Framework4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8Windows
.NET Standard2.0Windows, Linux, MacOS
See Also

Reference

TdTimestampWithTimeZone Structure
TdTimestampWithTimeZone Members
Overload List
Parse(String,IFormatProvider) Method