Roles Collection

ms133845.note(zh-cn,SQL.90).gif注意:
  下一版本的 Microsoft SQL Server 将删除该功能。请不要在新的开发工作中使用该功能,并尽快修改当前还在使用该功能的应用程序。

The Roles collection holds the user role definitions for a Decision Support Objects (DSO) object. Each of the following objects contains a Roles collection:

  • clsDatabase
  • clsCube
  • clsMiningModel

Each Roles collection contains role objects of the same class type. The ContainedClassType property of a Roles collection specifies the class type of the contained objects.

Class type Contained class type

clsCube

clsCubeRole

clsDatabase

clsDatabaseRole

clsMiningModel

clsMiningModelRole

备注

As with other DSO collections, the AddNew, Find, and Remove methods of Roles collections maintain all necessary parent-child relationships among the objects in the object model.

ms133845.note(zh-cn,SQL.90).gif注意:
  The UsersList property is maintained by clsDatabaseRole, and the Permissions property is maintained by clsCubeRole.

请参阅

参考

Methods, clsCollection
Properties, clsCollection
Collections (DSO)
Permissions (Role Interface)
UsersList (Role Interface)

帮助和信息

获取 SQL Server 2005 帮助