Clone

The Clone method of the MDStore interface copies the property values and optionally the collections of major and minor objects of an existing object to a target object of the same class type.

Applies To
clsAggregation clsDatabase
clsCube clsPartition

Syntax

object.Clone(TargetObject [, CloneOptions])

object
The MDStore object whose property values and collections of major and minor objects are to be copied.
TargetObject
An existing MDStore object.
CloneOptions
One of values of the CloneOptions enumeration.

The options to tell the method the extent to which the source object’s properties and major or minor children should be copied.

Option Description
cloneObjectProperties The values of the properties of the source object will be copied to the target object.
cloneMinorChildren The values of the properties and the minor objects contained in the source object’s collections are copied. For example, for a cube, the dimensions and their levels, measures, commands, and roles are copied. The target cube will have a default partition, but its properties are not based on the source cube’s default partition.
cloneMajorChildren The values of all properties and major and minor objects contained in the source object’s collections are copied. This is the default operation for the Clone method.

See Also
About Decision Support Objects Using Decision Support Objects
Methods Cross-Reference  

(c) 1988-1998 Microsoft Corporation. All Rights Reserved.