Partager via


Remove (clsCollection)

ms134807.note(fr-fr,SQL.90).gifRemarque :
  Cette fonctionnalité sera supprimée dans la prochaine version de Microsoft SQL Server. Évitez d'utiliser cette fonctionnalité dans de nouveaux travaux de développement, et modifiez dès que possible les applications qui utilisent actuellement cette fonctionnalité.

The Remove method of a Decision Support Objects (DSO) collection removes an item from the collection. This method does not apply to CustomProperties collections.

Syntaxe

object.Remove(vntIndexKey)    

Paramètres

  • object
    An instance of a DSO collection object.
  • vntIndexKey
    Either the index (integer) or key (string) to the collection.

    ms134807.note(fr-fr,SQL.90).gifRemarque :
      All collections in the DSO object model are one-based. That is, the first item in the collection has an index of 1 and the last item has an index of Count.

Notes

The Remove method, by removing the selected member from the collection, removes the selected member from both the Analysis server and the repository.

Exemple

Use the following code to remove the partition named EastCoast from the MDStores collection of partitions for a cube:

' Assume the existence of an object dsoCube
' of ClassType clsCube.
' Remove using the key 
dsoCube.MDStores.Remove "EastCoast" 
' OR Remove using the Index
dsoCube.MDStores.Remove 2 
 

Voir aussi

Autres ressources

Collections

Aide et Informations

Assistance sur SQL Server 2005