IsValid (Dimension Interface)
[!참고]
이 기능은 다음 버전의 Microsoft SQL Server에서 제거됩니다. 새 개발 작업에서는 이 기능을 사용하지 말고, 현재 이 기능을 사용하는 응용 프로그램은 가능한 한 빨리 수정하십시오.
The IsValid property of the Dimension interface indicates whether the structure of a dimension object is valid. A structure is valid if it is fully and correctly defined. For example, a dimension object whose data source has not been defined is not valid.
Applies To:clsAggregationDimension, clsCubeDimension, clsDatabaseDimension, clsPartitionDimension
Data Type
Boolean
Access
Read-only
주의
Depending on the value of the ClassType property of the object, the IsValid property checks different structure elements to confirm validity, as described in the following table.
Class type |
Checks |
---|---|
clsDatabaseDimension |
The Name and Parent properties; the database |
clsCubeDimension |
The Name and Parent properties; the source cube; the dimension and levels |
clsPartitionDimension |
The Name and Parent properties |
clsAggregationDimension |
The Name and Parent properties; the IsValid property of the parent object of ClassType clsPartitionDimension |
예
Use the following code to determine whether the structure of a dimension object is valid:
'Assume an object (dsoDim) of ClassType clsDimension exists.
Dim bValid As Boolean
bValid = dsoDim.IsValid
If bValid Then
'Insert code to process a valid dimension.
Else
'Something is not valid - handle errors.
End If