Clone (Role Interface)

ms135519.note(zh-tw,SQL.90).gif附註:
  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

The Clone method of the Role interface copies the property values and the collections of a role to a target object of the same class type.

Applies To:clsDatabaseRole

語法

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

參數

  • object
    The clsDatabaseRole object to be copied.
  • TargetObject
    An existing clsDatabaseRole object.
  • Options
    One of values of the CloneOptions enumeration. If no value is specified, the cloneMajorChildren option is used. For more information, see CloneOptions.

備註

Because Role objects do not contain major or minor objects, any clone option specified in Options is treated as cloneObjectProperties.

請參閱

參考

CloneOptions
Role Interface

說明及資訊

取得 SQL Server 2005 協助