The ADOMD.NET server objects are helper objects that can be used to create user defined functions (UDFs) or stored procedures in Microsoft SQL Server Analysis Services.
Note
To use the Microsoft.AnalysisServices.AdomdServer namespace (and these objects), a reference to the msmgdsrv.dll must be added to UDF project or stored procedure.
ADOMD.NET Object Model
Interaction with the ADOMD.NET object hierarchy typically starts with one or more of the objects in the topmost layer, as described in the following table.
The MDX object is convenient for calling predefined MDX functions without using the Expression object. Additional functions for the MDX object should be available in future releases.
Represent the current execution context for the UDF
The Context object exposes information such as the current cube or mining model and various metadata collections. One key use of the Context object is the CurrentMember property of the Hierarchy object. This key usage enables the author of the UDF or stored procedure to make decisions based on what member from a certain dimension the query is on.