IsValid (Level Interface)

[!附註]

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

The IsValid property of the Level interface indicates whether the level structure is valid. A level is valid if it is fully and correctly defined. For example, a level for which the FromClause has not been defined is not valid.

Applies To:clsAggregationLevel, clsCubeLevel, clsDatabaseLevel, clsPartitionLevel

Data Type

Boolean

Access

Read-only

範例

Use the following code to have Decision Support Objects (DSO) determine the validity of a level object:

' Assume an object (dsoLevel) of ClassType clsLevel exists
If Not dsoLevel.IsValid Then
  'Code to validate level definition
End If

請參閱

參考