次の方法で共有


Clone (Command Interface)

ms133426.note(ja-jp,SQL.90).gifメモ :
  この機能は、Microsoft SQL Server の次のバージョンで削除されます。新規の開発作業ではこの機能を使用しないようにし、現在この機能を使用しているアプリケーションはできるだけ早く修正してください。

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

構文

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

パラメータ

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

使用例

The following example clones a command object:

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

参照

関連項目

Command Interface

ヘルプおよび情報

SQL Server 2005 の参考資料の入手