This documentation is archived and is not being maintained.

IDbConnection.CreateCommand Method

Creates and returns a Command object associated with the connection.

[Visual Basic]
Function CreateCommand() As IDbCommand
[C#]
IDbCommand CreateCommand();
[C++]
IDbCommand* CreateCommand();
[JScript]
function CreateCommand() : IDbCommand;

Return Value

A Command object associated with the connection.

Requirements

Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

IDbConnection Interface | IDbConnection Members | System.Data Namespace

Show: