共用方式為


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"

請參閱

參考