Partilhar via


Find (clsCollection)

ObservaçãoObservação

  Esse recurso será removido na próxima versão do Microsoft SQL Server. Não utilize esse recurso em desenvolvimentos novos e modifique, assim que possível, os aplicativos que atualmente o utilizam.

The Find method of a Decision Support Objects (DSO) collection locates an item in a collection. This method does not apply to CustomProperties collections.

Sintaxe

bPresent = object.Find(vKey)

Parâmetros

  • 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.

Exemplo

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

Consulte também

Referência