Parent (Dimension Interface)

[!附註]

  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

The Parent property of the Dimension interface contains a reference to the parent MDStore object.

Applies To:clsAggregationDimension, clsCubeDimension, clsDatabaseDimension, clsPartitionDimension

Data Type

MDStore

Access

Read-only

備註

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

clsDatabase

clsCubeDimension

clsCube

clsPartitionDimension

clsPartition

clsAggregationDimension

clsAggregation

範例

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

請參閱

參考