'Declaration
<PureAttribute()> <NotNullAttribute()> Public Function Duplicate() As ADTObject
[Pure()] [NotNull()] public ADTObject Duplicate()
Return Value
Returns an ADTObject that is a duplicate of the source object.
'Declaration
<PureAttribute()> <NotNullAttribute()> Public Function Duplicate() As ADTObject
[Pure()] [NotNull()] public ADTObject Duplicate()
Use the Duplicate method when you want to create a new object based on an existing object. For example, if you want to create a new job that is similar to an existing one, you would use the Duplicate method.
The new object generally is a complete copy of the source object (including all properties and collections), with a new OID. For some classes the copy is not exact. For example, when you duplicate a job, the new copy does not get the old job's history, log messages, or status.