Return Value
A new DB2Command object in which all property values are the same as the original.
public void CloneACommand() { DB2Command db2Command = new DB2Command("SELECT * FROM Dept"); DB2Command db2Command2 = (DB2Command)db2Command.Clone(); Console.WriteLine(db2Command2.CommandText); }
Public Sub CloneACommand() Dim db2Command As New DB2Command("SELECT * FROM Dept") Dim db2Command2 As DB2Command = CType(db2Command.Clone(), DB2Command) Console.WriteLine(db2Command2.CommandText) End Sub
Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2