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