IsValid (Measure Interface)

ms135531.note(zh-tw,SQL.90).gif附註:
  下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。

The IsValid property of the Measure interface indicates whether the measure structure is valid.

Applies To:clsAggregationMeasure, clsCubeMeasure, clsPartitionMeasure

Data Type

Boolean

Access

Read-only

備註

Depending on the value of the ClassType property of the measure object, the IsValid property validates the properties and methods of the measure as indicated in the following table.

Class type Validation

clsAggregationMeasure

Name, Parent, and SourceField properties

clsCubeMeasure

Name, Parent, SourceField, and ColumnType properties

clsPartitionMeasure

Name, Parent, SourceField, and ColumnType properties

範例

Use the following code to determine whether the structure of a measure object is valid:

'Assume an object (dsoCubeMea) of ClassType clsCubeMeasure exists
Dim bValid As Boolean
bValid = dsoCube.IsValid

請參閱

參考

Measure Interface

說明及資訊

取得 SQL Server 2005 協助