ResetDbType Method
Collapse the table of content
Expand the table of content

OdbcParameter.ResetDbType Method

Resets the type associated with this OdbcParameter.

Namespace: System.Data.Odbc
Assembly: System.Data (in

public override void ResetDbType ()
public void ResetDbType ()
public override function ResetDbType ()
Not applicable.

When executing a command that includes parameter values, code can either set the type of a parameter explicitly, or the parameter can infer its type from its value. Calling this method resets the parameter so that it can again infer its type from the value passed in the parameter. Calling this method affects both the DbType and OdbcType properties of the OdbcParameter.

Calling ResetDbType resets DbType to its default value (String).

Windows 98, Windows Server 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

The Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0

Community Additions

© 2016 Microsoft