Partilhar via


Clone (Role Interface)

Note

  This feature will be removed in the next version of Microsoft SQL Server. Do not use this feature in new development work, and modify applications that currently use this feature as soon as possible.

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

Syntax

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

Parameters

  • 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.

Remarks

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

See Also

Reference

CloneOptions
Role Interface

Help and Information

Getting SQL Server 2005 Assistance