ClassType (Command Interface)

ms133826.note(de-de,SQL.90).gifHinweis:
  Dieses Feature wird in der nächsten Version von Microsoft SQL Server entfernt. Verwenden Sie dieses Feature nicht zum Entwickeln neuer Anwendungen, und planen Sie das Ändern von Anwendungen, in denen es zurzeit verwendet wird, zum frühstmöglichen Zeitpunkt ein.

The ClassType property of the Command interface contains an enumeration constant that identifies the class designation in the Decision Support Objects (DSO) object model.

Applies To: clsCubeCommandclsDatabaseCommand, clsRoleCommand

Data Type

ClassTypes

Access

Read-only

Beispiel

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

'Assume an object (dsoCommand) of ClassType clsCommand exists.
Dim enuClassType As DSO.ClassTypes
enuClassType = dsoCommand.ClassType
Select Case enuClassType
    Case clsDatabaseCommand
        ' Insert code for a database command.
    Case clsCubeCommand
        ' Insert code for a cube command.
    Case clsRoleCommand
        ' Insert code for a role command
    Case Else
        ' Insert code for when this is not a command object.
End Select

Siehe auch

Verweis

Command Interface

Hilfe und Informationen

Informationsquellen für SQL Server 2005