Export (0) Print
Expand All
0 out of 2 rated this helpful - Rate this topic

CellSet Class

Represents a cellset that is returned as a result of a query.

System.Object
  Microsoft.AnalysisServices.AdomdClient.CellSet

Namespace:  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)
public sealed class CellSet

The CellSet type exposes the following members.

  NameDescription
Public propertyAxesGets an instance of the AxisCollection class that contains the axes of the CellSet.
Public propertyCellsGets an instance of the CellCollection class that contains the cells of the CellSet.
Public propertyFilterAxisGets an instance of an Axis class that represents the filter axis of the CellSet.
Public propertyItem[ICollection]Gets the specified Cell by an ICollection interface that contains a collection of absolute axis indexes. In Microsoft Visual C#, this property is the indexer for the CellCollection class.
Public propertyItem[Int32]Gets an instance of a Cell by its index. In Microsoft Visual C#, this property is the indexer for the CellSet class.
Public propertyItem[Int32[]]Gets the specified Cell from the collection by an array of absolute axis indexes.
Public propertyItem[Int32, Int32]Gets the specified Cell from the collection.
Public propertyOlapInfoGets an instance of an OlapInfo class describing the CellSet.
Top
  NameDescription
Public methodEquals (Inherited from Object.)
Public methodGetHashCode (Inherited from Object.)
Public methodGetType (Inherited from Object.)
Public methodStatic memberLoadXmlReturns a CellSet created from a server response, passed in as an XmlReader.
Public methodToString (Inherited from Object.)
Top

In ADOMD.NET, the CellSet encapsulates a multidimensional result set that is the result of running a command. A multidimensional result set contains a discrete collection of data points, or cells, that are organized along multiple dimensions, or axes.

A CellSet is created when the Execute or ExecuteCellSet method of the AdomdCommand is called to run a command.

The following subroutine, given a CellSet, examines and displays information about the object:

Public Sub ListCellSetInfo(ByRef CellSetToCheck As CellSet)
    If CellSetToCheck Is Nothing Then
        Throw New System.ArgumentNullException("CellSetToCheck")
    Else
        Console.WriteLine("The cellset has {0} cells " & _
            "organized along {1} axes.", _
            CellSetToCheck.Cells.Count, _
            CellSetToCheck.Axes.Count)
    End If
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.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

ADD
Show:
© 2014 Microsoft. All rights reserved.