Redigera

Dela via


Parameter.ConvertTypeCodeToDbType(TypeCode) Method

Definition

Converts a TypeCode value to an equivalent DbType value.

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

Parameters

typeCode
TypeCode

The TypeCode value to convert to an equivalent DbType value.

Returns

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

Remarks

This method returns an Object instance if no equivalent is found. Types without equivalent database types include DBNull and Empty.

Applies to