FlexPivot for WPF | ComponentOne
C1.PivotEngine Assembly / C1.PivotEngine Namespace / C1PivotEngine Class / ExecCube Method
SSAS connection string.
Cube name.
View definition used for retrieving data from the cube.
Enables task cancellation.
Callback function to report progress updates.

In This Topic
    ExecCube Method
    In This Topic
    Server request for data from a SQL Server Analysis Service (SSAS) cube. Returns aggregated results to the caller client.
    Syntax
    'Declaration
     
    Public Shared Function ExecCube( _
       ByVal connection As String, _
       ByVal cubeName As String, _
       ByVal view As Dictionary(Of String,Object), _
       ByVal cancelToken As CancellationToken, _
       ByVal progress As ProgressDelegate _
    ) As Task(Of Dictionary(Of Object(),Object()))

    Parameters

    connection
    SSAS connection string.
    cubeName
    Cube name.
    view
    View definition used for retrieving data from the cube.
    cancelToken
    Enables task cancellation.
    progress
    Callback function to report progress updates.

    Return Value

    Aggregation results.
    Remarks

    This method supports multi-user thread-safe retrieval of aggregated data form a cube. Resulting data is intended for passing to a client for visualization on the web or elsewhere.

    It can get data from multiple cubes, cube name (and connection) specified in each call. It maintains a pool of Workspace objects internally to enable that.

    Aggregation result is a dictionary mapping keys to values. See a description of keys and values in %C1.PivotEngine.C1PivotEngine.Exec(string, string, System.Collections.Generic.Dictionary<string,object>, System.Threading.CancellationToken)%

    See Also