Clone (Role Interface)

注意注意

  下一版本的 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.

请参阅

参考