ClassType (Command Interface)
[!참고] 이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.
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
Access
Read-only
예
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