Freigeben über


SqlConnection.CreateCommand-Methode

Erstellt ein SqlCommand-Objekt, das SqlConnection zugeordnet ist, und gibt es zurück.

Namespace: System.Data.SqlClient
Assembly: System.Data (in system.data.dll)

Syntax

'Declaration
Public Function CreateCommand As SqlCommand
'Usage
Dim instance As SqlConnection
Dim returnValue As SqlCommand

returnValue = instance.CreateCommand
public SqlCommand CreateCommand ()
public:
SqlCommand^ CreateCommand ()
public SqlCommand CreateCommand ()
public function CreateCommand () : SqlCommand

Rückgabewert

Ein SqlCommand-Objekt.

Plattformen

Windows 98, Windows 2000 SP4, Windows CE, Windows Millennium Edition, Windows Mobile für Pocket PC, Windows Mobile für Smartphone, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

.NET Framework unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

.NET Compact Framework

Unterstützt in: 2.0, 1.0

Siehe auch

Referenz

SqlConnection-Klasse
SqlConnection-Member
System.Data.SqlClient-Namespace