Send feedback on this topic.
Teradata.Client.Provider
TryParse Method (TdIntervalMinute)



Teradata.Client.Provider Namespace > TdIntervalMinute Structure : TryParse Method
A string to be converted into a TdIntervalMinute.
The converted string into a TdIntervalMinute.
The specified string is converted into an equivalent TdIntervalMinute.
The specified string is converted into an equivalent TdIntervalMinute interval. A true is returned if the conversion succeeded, false otherwise.
Syntax
'Declaration
 
Public Shared Function TryParse( _
   ByVal value As String, _
   ByRef result As TdIntervalMinute _
) As Boolean
'Usage
 
Dim value As String
Dim result As TdIntervalMinute
Dim value As Boolean
 
value = TdIntervalMinute.TryParse(value, result)
public static bool TryParse( 
   string value,
   out TdIntervalMinute result
)
public:
static bool TryParse( 
   String^ value,
   [Out] TdIntervalMinute result
) 

Parameters

value
A string to be converted into a TdIntervalMinute.
result
The converted string into a TdIntervalMinute.

Return Value

true if the conversion of value succeeded, false otherwise.
Remarks

This method supports the following string formats:

String Format Description
G

General interval format.

[sign][[minutes]

L

SQL literal format. This string may be used in a SQL statement.

INTERVAL [sign]'[minutes]' MINUTE

Below is the description of each format item.

Format Item Description
sign Optional - . Defaults as space character (+).
minutes Required number of minutes (one to four digits in length).

While parsing the value the TdIntervalMinute.Precision will be set to the number of digits contained within the minutes component.

For example a value of "20" will contain a precision of 2.

Requirements

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

See Also

Reference

TdIntervalMinute Structure
TdIntervalMinute Members