Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

CellPropertyCollection Class

 

Contains a collection of CellProperty objects contained by a Cell.

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

System.Object
  Microsoft.AnalysisServices.AdomdClient.CellPropertyCollection

public sealed class CellPropertyCollection : ICollection, IEnumerable

NameDescription
System_CAPS_pubpropertyCount

Gets the number of CellProperty objects in the collection.

System_CAPS_pubpropertyIsSynchronized

Gets a value indicating whether access to the collection is synchronized (thread safe).

System_CAPS_pubpropertyItem[Int32]

Gets the specified CellProperty from the collection by its index. In Microsoft Visual C#, this property is the indexer for the CellPropertyCollection class.

System_CAPS_pubpropertyItem[String]

Gets the specified CellProperty from the collection by its name. In Microsoft Visual C#, this property is the indexer for the CellPropertyCollection class.

System_CAPS_pubpropertySyncRoot

Gets an Object that can be used to synchronize access to the collection.

NameDescription
System_CAPS_pubmethodCopyTo(CellProperty[], Int32)

Copies the elements of the collection to the specified array.

System_CAPS_pubmethodEquals(Object)

(Inherited from Object.)

System_CAPS_pubmethodFind(String)

Gets the specified CellProperty from the collection by its name.

System_CAPS_pubmethodGetEnumerator()

Gets an enumerator for iterating through the collection.

System_CAPS_pubmethodGetHashCode()

(Inherited from Object.)

System_CAPS_pubmethodGetType()

(Inherited from Object.)

System_CAPS_pubmethodToString()

(Inherited from Object.)

NameDescription
System_CAPS_pubinterfaceSystem_CAPS_privmethodICollection.CopyTo(Array, Int32)

Copies the elements of the CellPropertyCollection to an array, starting at a particular array index.

System_CAPS_pubinterfaceSystem_CAPS_privmethodIEnumerable.GetEnumerator()

Gets an enumerator for iterating through the collection.

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.

Legacy Code Example

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

Any public static (Shared in Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Return to top

Community Additions

Show:
© 2015 Microsoft