Clone (MDStore Interface)

[!附註]

  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

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, clsCube, clsDatabase, clsPartition

語法

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

參數

  • object
    The MDStore object whose property values and collections of major and minor objects are to be copied.

  • TargetObject
    An existing MDStore object.

  • Options
    One of the values of the CloneOptions enumeration. If no value is specified, the cloneMajorChildren option is used. For more information, see CloneOptions.

備註

The Clone method, depending on the clone option specified in Options, copies properties and minor objects to a new MDStore object with the same ClassType property value.

請參閱

參考