Επεξεργασία

Κοινή χρήση μέσω


Parameter.ConvertDbTypeToTypeCode(DbType) Method

Definition

Converts a DbType value to an equivalent TypeCode value.

public:
 static TypeCode ConvertDbTypeToTypeCode(System::Data::DbType dbType);
public static TypeCode ConvertDbTypeToTypeCode (System.Data.DbType dbType);
static member ConvertDbTypeToTypeCode : System.Data.DbType -> TypeCode
Public Shared Function ConvertDbTypeToTypeCode (dbType As DbType) As TypeCode

Parameters

dbType
DbType

A DbType value to convert to an equivalent TypeCode value.

Returns

A TypeCode value that is equivalent to the specified DbType value.

Remarks

This method returns an Object instance if no equivalent for the DbType value is found. Database types without equivalent types include Guid, Binary, and DateTimeOffset.

Applies to