Düzenle

Aracılığıyla paylaş


Parameter.GetDatabaseType Method

Definition

Gets the DbType value that is equivalent to the CLR type of the current Parameter instance.

public:
 System::Data::DbType GetDatabaseType();
public System.Data.DbType GetDatabaseType ();
member this.GetDatabaseType : unit -> System.Data.DbType
Public Function GetDatabaseType () As DbType

Returns

The DbType value that is equivalent to the CLR type of the current Parameter instance.

Exceptions

The DbType property is already set to a value other than Object.

Remarks

The DbType property must not already have been set, or must be set to Object. This method is intended for use only when the CLR type is set but the DbType property is not.

Applies to