FlexPivot for WPF | ComponentOne
C1.PivotEngine Assembly / C1.PivotEngine Namespace / C1PivotEngine Class / GetUniqueValuesCube Method
SQL Server Analysis Service (SSAS) connection string.
Cube name.
View definition used for retrieving data from the cube.
The name of the field to provide unique values for.
Enables task cancellation.

In This Topic
    GetUniqueValuesCube Method
    In This Topic
    Lists unique values of a field for the server's clients.
    Syntax
    'Declaration
     
    Public Shared Function GetUniqueValuesCube( _
       ByVal connection As String, _
       ByVal cubeName As String, _
       ByVal view As Dictionary(Of String,Object), _
       ByVal fieldUniqueName As String, _
       ByVal cancelToken As CancellationToken _
    ) As Task(Of IList)
    public static Task<IList> GetUniqueValuesCube( 
       string connection,
       string cubeName,
       Dictionary<string,object> view,
       string fieldUniqueName,
       CancellationToken cancelToken
    )

    Parameters

    connection
    SQL Server Analysis Service (SSAS) connection string.
    cubeName
    Cube name.
    view
    View definition used for retrieving data from the cube.
    fieldUniqueName
    The name of the field to provide unique values for.
    cancelToken
    Enables task cancellation.

    Return Value

    Collection of objects with properties Name (string) and Type (System.Type)
    Remarks

    Using this method, a client can show a list of values for the user to choose from.

    See Also