Clone (Command Interface)
[!참고] 이 기능은 다음 버전의 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