Parent (Dimension Interface)
Hinweis |
---|
Diese Funktion wird in der nächsten Version von Microsoft SQL Server entfernt. Verwenden Sie diese Funktion beim Entwickeln neuer Anwendungen nicht, und planen Sie so bald wie möglich das Ändern von Anwendungen, in denen es zurzeit verwendet wird. |
The Parent property of the Dimension interface contains a reference to the parent MDStore object.
Applies To:clsAggregationDimension, clsCubeDimension, clsDatabaseDimension, clsPartitionDimension
Access
Read-only
Hinweise
The value of the ClassType property of the parent object depends on the value of the ClassType property of the object.
Dimension object ClassType |
Parent object ClassType |
---|---|
clsDatabaseDimension |
|
clsCubeDimension |
|
clsPartitionDimension |
|
clsAggregationDimension |
Beispiel
Use the following code to obtain the parent of a dimension object:
'Assume an object (dsoDim) of ClassType clsDimension exists.
Dim objClassType As ClassTypes
objClassType = dsoDim.Parent.ClassType
Select Case objClassType
Case clsDatabase
'Insert code for the database parent object.
Case clsCube
'Insert code for the cube/virtual cube parent object.
Case clsPartiton
'Insert code for the partition parent object.
Case clsAggregation
'Insert code for the aggregation parent object.
End Select