Condividi tramite


Classe CellPropertyCollection

Contains a collection of CellProperty objects contained by a Cell.

Gerarchia di ereditarietà

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

Spazio dei nomi  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

Sintassi

'Dichiarazione
Public NotInheritable Class CellPropertyCollection _
    Implements ICollection, IEnumerable
'Utilizzo
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

Nel tipo CellPropertyCollection sono esposti i membri seguenti.

Proprietà

  Nome Descrizione
Proprietà pubblica Count Gets the number of CellProperty objects in the collection.
Proprietà pubblica IsSynchronized Gets a value indicating whether access to the collection is synchronized (thread safe).
Proprietà pubblica 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.
Proprietà pubblica 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.
Proprietà pubblica SyncRoot Gets an Object that can be used to synchronize access to the collection.

In alto

Metodi

  Nome Descrizione
Metodo pubblico CopyTo Copies the elements of the collection to the specified array.
Metodo pubblico Equals Ereditato da Object.
Metodo protetto Finalize Ereditato da Object.
Metodo pubblico Find Gets the specified CellProperty from the collection by its name.
Metodo pubblico GetEnumerator Gets an Enumerator for iterating through the collection.
Metodo pubblico GetHashCode Ereditato da Object.
Metodo pubblico GetType Ereditato da Object.
Metodo protetto MemberwiseClone Ereditato da Object.
Metodo pubblico ToString Ereditato da Object.

In alto

Implementazioni esplicite dell'interfaccia

  Nome Descrizione
Implementazione esplicita dell'interfacciaMetodo privato ICollection. . :: . .CopyTo
Implementazione esplicita dell'interfacciaMetodo privato IEnumerable. . :: . .GetEnumerator

In alto

Osservazioni

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.

Esempi

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

Protezione dei thread

I membri static (Shared in Visual Basic) pubblici di questo tipo sono affidabili. Non è invece garantita la sicurezza dei membri dell'istanza.