'Declaration Public Function Clone() As SqlShimCommand
public SqlShimCommand Clone()
Return Value
A new SqlShimCommand object in which all property values are the same as the original.
'Declaration Public Function Clone() As SqlShimCommand
public SqlShimCommand Clone()
public void CloneACommand() { BigcommerceCommand bigcommerceCommand = new BigcommerceCommand("SELECT * FROM customers"); BigcommerceCommand bigcommerceCommand2 = (BigcommerceCommand)bigcommerceCommand.Clone(); Console.WriteLine(bigcommerceCommand2.CommandText); }
Public Sub CloneACommand() Dim bigcommerceCommand As New BigcommerceCommand("SELECT * FROM customers") Dim bigcommerceCommand2 As BigcommerceCommand = CType(bigcommerceCommand.Clone(), BigcommerceCommand) Console.WriteLine(bigcommerceCommand2.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