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



Teradata.Client.Provider Namespace > TdNumber Structure > Parse Method : Parse(String,IFormatProvider) Method
The numeric string that is to be converted to a TdNumber.
An IFormatProvider that supplies culture-specific formatting information.
Converts the String representation of a number to its TdNumber equivalent using the specified culture-specific format information.
Syntax
'Declaration
 
Public Overloads Shared Function Parse( _
   ByVal input As String, _
   ByVal provider As IFormatProvider _
) As TdNumber
'Usage
 
Dim input As String
Dim provider As IFormatProvider
Dim value As TdNumber
 
value = TdNumber.Parse(input, provider)
public static TdNumber Parse( 
   string input,
   IFormatProvider provider
)
public:
static TdNumber Parse( 
   String^ input,
   IFormatProvider^ provider
) 

Parameters

input
The numeric string that is to be converted to a TdNumber.
provider
An IFormatProvider that supplies culture-specific formatting information.

Return Value

The TdNumber representation of the specified numeric string.
Exceptions
ExceptionDescription
The numeric string is null or empty.
The format of the numeric string is invalid.
The specified numeric string could not be converted to a TdNumber.
The numeric string is null.
Remarks

A reference to the Globalization.NumberFormatInfo associated with the specified provider is retrieved. The properties of the NumberFormatInfo are used when parsing the numeric string. However, the only culture specific properties that are supported are as follows:

If the input contains the string "NULL" a TdNumber.Null will be returned.

Refer to TdNumber.Parse for further information about the format of the numeric string.

Requirements

Target Platforms: Windows 7, Windows 8, Windows 8.1, Windows 10, Windows Server 2008, Windows Server 2008 R2, Windows Server 2012, Windows Server 2012 R2

See Also

Reference

TdNumber Structure
TdNumber Members
Overload List