SqlCommand.Clone Method ()

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

Creates a new SqlCommand object that is a copy of the current instance.

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

public SqlCommand Clone()

Return Value

Type: System.Data.SqlClient.SqlCommand

A new SqlCommand object that is a copy of this instance.

.NET Framework
Available since 2.0
Return to top
Show: