UsersList (Role Interface)

[!REMARQUE]

  Cette fonctionnalité sera supprimée dans la prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et modifiez dès que possible les applications qui utilisent actuellement cette fonctionnalité.

The UsersList property of the Role interface contains a semicolon-delimited list of users and/or groups assigned to the role.

Applies To:clsCubeRole, clsDatabaseRole, clsMiningModelRole

Data Type

String

Access

Access depends on the value of the ClassType property of the object.

Class type

Access

ClsDatabaseRole

R/W

ClsCubeRole

R

ClsMiningModelRole

R

Notes

The name for a user list must be qualified with the appropriate domain name. The general format is <domain>\<user or group>.

Exemple

Use the following code to set the list of users of a role object:

RoleObject.UsersList = "Domain1\Ejones;Domain1\Analysts;Domain2\RGreen"

Voir aussi

Référence