Partager via


Clone (Command Interface)

[!REMARQUE]

  Cette fonctionnalité sera supprimée dans la prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et modifiez dès que possible les applications qui utilisent actuellement cette fonctionnalité.

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

Syntaxe

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

Paramètres

  • 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.

Exemple

The following example clones a command object:

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

Voir aussi

Référence