Partager via


Classe DataItemCollection

Contains a collection of DataItem objects. This class cannot be inherited.

Hiérarchie d'héritage

System.Object
  Microsoft.AnalysisServices.DataItemCollection

Espace de noms :  Microsoft.AnalysisServices
Assembly :  Microsoft.AnalysisServices (en Microsoft.AnalysisServices.dll)

Syntaxe

'Déclaration
<GuidAttribute("289E8AED-7BE3-4220-B096-5FF2E81986A7")> _
Public NotInheritable Class DataItemCollection _
    Implements IList, ICollection, IEnumerable
'Utilisation
Dim instance As DataItemCollection
[GuidAttribute("289E8AED-7BE3-4220-B096-5FF2E81986A7")]
public sealed class DataItemCollection : IList, 
    ICollection, IEnumerable
[GuidAttribute(L"289E8AED-7BE3-4220-B096-5FF2E81986A7")]
public ref class DataItemCollection sealed : IList, 
    ICollection, IEnumerable
[<SealedAttribute>]
[<GuidAttribute("289E8AED-7BE3-4220-B096-5FF2E81986A7")>]
type DataItemCollection =  
    class 
        interface IList 
        interface ICollection 
        interface IEnumerable 
    end
public final class DataItemCollection implements IList, ICollection, IEnumerable

Le type DataItemCollection expose les membres suivants.

Propriétés

  Nom Description
Propriété publique Count Gets the number of DataItem objects contained in the collection.
Propriété publique Item Gets the DataItem at the specified index from the collection.

Haut de la page

Méthodes

  Nom Description
Méthode publique Add(DataItem) Adds a DataItem to the end of the collection.
Méthode publique Add(String, String) Creates and adds a DataItem, with the specified table name and column name, to the end of the collection.
Méthode publique Add(String, String, OleDbType) Creates and adds a DataItem, with the specified table name, column name, and data type, to the end of the collection.
Méthode publique Add(String, String, OleDbType, Int32) Creates and adds a DataItem, with the specified table name, column name, data type, and data size, to the end of the collection.
Méthode publique Clear Removes all elements from the collection. This class cannot be inherited.
Méthode publique Contains Indicates whether the collection contains a specified DataItem.
Méthode publique CopyTo Copies the entire collection to a compatible one-dimensional Array, starting at the specified index of the target array. This class cannot be inherited.
Méthode publique Equals (hérité de Object.)
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode publique IndexOf Gets the index of a specified DataItem.
Méthode publique Insert Inserts a DataItem into the collection at the specified index.
Méthode publique Remove Removes the specified DataItem from the collection.
Méthode publique RemoveAt Removes the DataItem at the specified index from the collection. This class cannot be inherited.
Méthode publique ToString (hérité de Object.)

Haut de la page

Implémentations d'interfaces explicites

  Nom Description
Implémentation d'interface expliciteMéthode privée IList.Add Adds an item to the collection.
Implémentation d'interface expliciteMéthode privée IList.Contains Indicates whether the collection contains a specific value.
Implémentation d'interface expliciteMéthode privée IEnumerable.GetEnumerator Returns an enumerator that iterates through a collection.
Implémentation d'interface expliciteMéthode privée IList.IndexOf Determines the index of a specific item in the collection.
Implémentation d'interface expliciteMéthode privée IList.Insert Inserts an item to the collection at the specified index.
Implémentation d'interface explicitePropriété privée IList.IsFixedSize Gets a value that indicates whether the collection has a fixed size.
Implémentation d'interface explicitePropriété privée IList.IsReadOnly Gets a value that indicates whether this DataItemCollection is read-only.
Implémentation d'interface explicitePropriété privée ICollection.IsSynchronized Gets a value that indicates whether access to the DataItemCollection is synchronized.
Implémentation d'interface explicitePropriété privée IList.Item Gets or sets the element at the specified index.
Implémentation d'interface expliciteMéthode privée IList.Remove Removes the first occurrence of a specified object from the collection.
Implémentation d'interface explicitePropriété privée ICollection.SyncRoot Gets an object that can be used to synchronize access to the DataItemCollection.

Haut de la page

Sécurité des threads

Tous les membres publics static (Shared dans Visual Basic) de ce type sont thread-safe. Tous les membres de l'instance ne sont pas garantis comme étant thread-safe.

Voir aussi

Référence

Espace de noms Microsoft.AnalysisServices