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