Compartir a través de


Clase CellPropertyCollection

Contains a collection of CellProperty objects contained by a Cell.

Jerarquía de herencia

System.Object
  Microsoft.AnalysisServices.AdomdClient.CellPropertyCollection

Espacio de nombres:  Microsoft.AnalysisServices.AdomdClient
Ensamblado:  Microsoft.AnalysisServices.AdomdClient (en Microsoft.AnalysisServices.AdomdClient.dll)

Sintaxis

'Declaración
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

El tipo CellPropertyCollection expone los siguientes miembros.

Propiedades

  Nombre Descripción
Propiedad pública Count Gets the number of CellProperty objects in the collection.
Propiedad pública IsSynchronized Gets a value indicating whether access to the collection is synchronized (thread safe).
Propiedad 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.
Propiedad 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.
Propiedad pública SyncRoot Gets an Object that can be used to synchronize access to the collection.

Arriba

Métodos

  Nombre Descripción
Método público CopyTo Copies the elements of the collection to the specified array.
Método público Equals (Se hereda 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 (Se hereda de Object.)
Método público GetType (Se hereda de Object.)
Método público ToString (Se hereda de Object.)

Arriba

Implementaciones de interfaces explícitas

  Nombre Descripción
Implementación de interfaces explícitasMétodo privado ICollection.CopyTo Copies the elements of the CellPropertyCollection to an array, starting at a particular array index.
Implementación de interfaces explícitasMétodo privado IEnumerable.GetEnumerator Gets an enumerator for iterating through the collection.

Arriba

Comentarios

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.

Ejemplos

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

Seguridad para subprocesos

Cualquier miembro público static (Shared en Visual Basic) de este tipo es seguro para subprocesos. No se garantiza que los miembros de instancia sean seguros para subprocesos.

Vea también

Referencia

Espacio de nombres Microsoft.AnalysisServices.AdomdClient