Classe CellPropertyCollection

Contains a collection of CellProperty objects contained by a Cell.

Hiérarchie d'héritage

System. . :: . .Object
  Microsoft.AnalysisServices.AdomdClient..::..CellPropertyCollection

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

Syntaxe

'Déclaration
Public NotInheritable Class CellPropertyCollection _
    Implements ICollection, IEnumerable
'Utilisation
Dim instance As CellPropertyCollection
public sealed class CellPropertyCollection : ICollection, 
    IEnumerable
public ref class CellPropertyCollection sealed : ICollection, 
    IEnumerable
[<SealedAttribute>]
type CellPropertyCollection =  
    class
        interface ICollection
        interface IEnumerable
    end
public final class CellPropertyCollection implements ICollection, IEnumerable

Le type CellPropertyCollection expose les membres suivants.

Propriétés

  Nom Description
Propriété publique Count Gets the number of CellProperty objects in the collection.
Propriété publique IsSynchronized Gets a value indicating whether access to the collection is synchronized (thread safe).
Propriété publique Item[ ( [ ( Int32] ) ] ) Gets the specified CellProperty from the collection by its index. In Microsoft Visual C#, this property is the indexer for the CellPropertyCollection class.
Propriété publique Item[ ( [ ( String] ) ] ) Gets the specified CellProperty from the collection by its name. In Microsoft Visual C#, this property is the indexer for the CellPropertyCollection class.
Propriété publique SyncRoot Gets an Object that can be used to synchronize access to the collection.

Haut de la page

Méthodes

  Nom Description
Méthode publique CopyTo Copies the elements of the collection to the specified array.
Méthode publique Equals (hérité de Object.)
Méthode protégée Finalize (hérité de Object.)
Méthode publique Find Gets the specified CellProperty from the collection by its name.
Méthode publique GetEnumerator Gets an Enumerator for iterating through the collection.
Méthode publique GetHashCode (hérité de Object.)
Méthode publique GetType (hérité de Object.)
Méthode protégée MemberwiseClone (hérité de Object.)
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 ICollection. . :: . .CopyTo
Implémentation d'interface expliciteMéthode privée IEnumerable. . :: . .GetEnumerator

Haut de la page

Notes

The CellPropertyCollection is populated when a Cell is created. Each cell in a cellset can have zero or more intrinsic or custom cell properties associated with it, represented by CellProperty objects maintained by the CellPropertyCollection collection.

Exemples

The following subroutine iterates through the CellPropertyCollection collection of a specified Cell.

Public Sub ListCellPropertyCollection(ByRef CellToCheck As Cell)
    'Assumes CellToCheck is not null.
    Dim cellProperty As CellProperty

    Debug.WriteLine("Found " & CellToCheck.CellProperties.Count & _
        " cell properties in cell:")

    For Each cellProperty In CellToCheck.CellProperties
        Debug.WriteLine("  Name:  " & cellProperty.Name)
        Debug.WriteLine(" Value:  " & cellProperty.Value)
    Next
End Sub

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.