Send feedback on this topic.
Teradata.Client.Provider
DbType Property



Teradata.Client.Provider Namespace > TdParameter Class : DbType Property
Gets or sets the generic (ADO.NET) data type of the parameter.
Syntax
'Declaration
 
Public Overrides NotOverridable Property DbType As DbType
'Usage
 
Dim instance As TdParameter
Dim value As DbType
 
instance.DbType = value
 
value = instance.DbType
public override DbType DbType {get; set;}
public:
property DbType DbType {
   DbType get() override;
   void set (    DbType value) override;
}

Property Value

One of the System.Data.DbType enumeration values. The default is String.
Exceptions
ExceptionDescription
Argument is not a valid DbType.
Remarks
System.Data.DbType is a generic data type enumeration. In this context it specifies the parameter type of the target column or arguments to a stored procedure. It is recommended that you use the TdParameter.TdType property to specify the parameter data type. The data provider automatically changes the TdParameter.DbType property when the TdParameter.TdType property is set.
Requirements

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

See Also

Reference

TdParameter Class
TdParameter Members