Compartilhar via


Classe CellPropertyCollection

Contains a collection of CellProperty objects contained by a Cell.

Hierarquia de herança

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

Namespace:  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (em Microsoft.AnalysisServices.AdomdClient.dll)

Sintaxe

'Declaração
Public NotInheritable Class CellPropertyCollection _
    Implements ICollection, IEnumerable
'Uso
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

O tipo CellPropertyCollection expõe os membros a seguir.

Propriedades

  Nome Descrição
Propriedade pública Count Gets the number of CellProperty objects in the collection.
Propriedade pública IsSynchronized Gets a value indicating whether access to the collection is synchronized (thread safe).
Propriedade pública 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.
Propriedade pública 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.
Propriedade pública SyncRoot Gets an Object that can be used to synchronize access to the collection.

Início

Métodos

  Nome Descrição
Método público CopyTo Copies the elements of the collection to the specified array.
Método público Equals (Herdado de Object.)
Método protegido Finalize (Herdado de Object.)
Método público Find Gets the specified CellProperty from the collection by its name.
Método público GetEnumerator Gets an Enumerator for iterating through the collection.
Método público GetHashCode (Herdado de Object.)
Método público GetType (Herdado de Object.)
Método protegido MemberwiseClone (Herdado de Object.)
Método público ToString (Herdado de Object.)

Início

Implementações de interfaces explícitas

  Nome Descrição
Implementações de interfaces explícitasMétodo privado ICollection. . :: . .CopyTo
Implementações de interfaces explícitasMétodo privado IEnumerable. . :: . .GetEnumerator

Início

Comentários

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.

Exemplos

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

Segurança de thread

Qualquer membro público static (Shared no Visual Basic) desse tipo é seguro para threads. Não há garantia de que qualquer membro de instância seja seguro para threads.