ClassType (Role Interface)

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

The ClassType property of the Role interface contains an enumeration constant that identifies the specific class type.

Applies To:clsCubeRole, clsDatabaseRole, clsMiningModelRole

Data Type

ClassTypes

ClassType is set to one of the following values:

  • clsDatabaseRole
  • clsCubeRole
  • clsMiningModelRole

Access

Read-only

示例

Use the following code to return the class type of a role object and determine which object class has been returned:

' Assume the existence of object RoleObject
Dim ClassTyp As DSO.ClassTypes
ClassTyp = RoleObject.ClassType
Select Case ClassTyp
   Case clsDatabaseRole
        ' Insert code for a database role.
   Case clsCubeRole
        ' Insert code for a cube role.
   Case clsMiningModelRole
        ' Insert code for mining model roles.
   Case Else
        ' Insert code for other objects.
End Select

请参阅

参考

ClassTypes
Role Interface
SubClassType (Role Interface)

帮助和信息

获取 SQL Server 2005 帮助