Compartir a través de


Clone (Role Interface)

[!NOTA]

  Esta característica se quitará en la versión siguiente de Microsoft SQL Server. No utilice esta característica en nuevos trabajos de desarrollo y modifique lo antes posible las aplicaciones que actualmente la utilizan.

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

Sintaxis

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

Parámetros

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

Notas

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

Vea también

Referencia