Find (clsCollection)
附註: |
---|
下一版的 Microsoft SQL Server 將不再提供此功能。請勿在新的開發工作中使用此功能,並且儘速修改使用此功能的應用程式。 |
The Find method of a Decision Support Objects (DSO) collection locates an item in a collection. This method does not apply to CustomProperties collections.
語法
bPresent = object.Find(vKey)
參數
- bPresent
A Boolean variable that receives the returned value: True if the item was found, False otherwise.
- object
An instance of a DSO collection object.
- vKey
The key or index of the item to be found.
範例
Use the following code to check for the existence of a partition named EastCoast in the MDStores collection of partitions for a cube:
' Assume the existence of an object cubCube
' of ClassType clsCube.
Dim bPresent As Boolean
bPresent = cubCube.MDStores.Find("EastCoast")