Clone (Role Interface)
Hinweis: |
---|
Dieses Feature wird in der nächsten Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature nicht zum Entwickeln neuer Anwendungen, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird, zum frühstmöglichen Zeitpunkt ein. |
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])
Parameter
- 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.
Hinweise
Because Role objects do not contain major or minor objects, any clone option specified in Options is treated as cloneObjectProperties.