Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

Parameter::GetDatabaseType Method ()

 

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

Namespace:   System.Web.UI.WebControls
Assembly:  System.Web (in System.Web.dll)

public:
DbType GetDatabaseType()

Return Value

Type: System.Data::DbType

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

Exception Condition
InvalidOperationException

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

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.

.NET Framework
Available since 2.0
Return to top
Show:
© 2017 Microsoft