Clone() public method

Creates a clone of this MySqlCommand object. CommandText, Connection, and Transaction properties are included as well as the entire parameter list.
public Clone ( ) : MySqlCommand
return MySqlCommand
コード例 #1
0
 public virtual void CloneCommand()
 {
     MySqlCommand cmd = new MySqlCommand();
       MySqlCommand newCommand = cmd.Clone();
     #if !RT
       IDbCommand newCommand2 = (IDbCommand)(cmd as ICloneable).Clone();
     #endif
 }
コード例 #2
0
		public void CloneCommand() 
		{
			MySqlCommand cmd = new MySqlCommand();
            MySqlCommand newCommand = cmd.Clone();
            IDbCommand newCommand2 = (IDbCommand)(cmd as ICloneable).Clone();
		}