Condividi tramite


Clone (Command Interface)

[!NOTA]

  Questa caratteristica verrà rimossa a partire dalla prossima versione di Microsoft SQL Server. Non utilizzare questa caratteristica in un nuovo progetto di sviluppo e modificare non appena possibile le applicazioni in cui è attualmente implementata.

The Clone method of the Command interface copies the properties of an existing object to a target object of the same class type. The target object must exist prior to using the Clone method.

Applies To:clsDatabaseCommand

Sintassi

object.Clone(ByVal TargetObject As Command, [ByVal Options As CloneOptions = cloneMajorChildren])

Parametri

  • object
    The object whose property values are to be copied.

  • TargetObject
    A previously created object of the same class type.

  • Options
    For objects of ClassType clsDatabaseCommand, the CloneOptions argument has no effect and is ignored.

Esempio

The following example clones a command object:

'Assume a command object (dsoCmd) exists.
Dim dsoCmdCopy as new DSO.Command
dsoCmd.Clone dsoCmdCopy

Vedere anche

Riferimento