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")