Context.CurrentCube Property

Gets the current cube.

Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)

public static CubeDef CurrentCube { get; }

Property Value

Type: Microsoft.AnalysisServices.AdomdServer.CubeDef
A CubeDef that represents the current cube; null if not applicable.

The return value will be null when called from a Data Mining Extensions (DMX) query, or as a stored procedure. For more information about the differences between user-defined functions (UDFs) and stored procedures, see User Defined Functions and Stored Procedures.

Community Additions