UsersList (Role Interface)
注意: |
---|
下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。 |
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 |
备注
The name for a user list must be qualified with the appropriate domain name. The general format is <domain>\<user or group>.
示例
Use the following code to set the list of users of a role object:
RoleObject.UsersList = "Domain1\Ejones;Domain1\Analysts;Domain2\RGreen"