Metodo Expression.Calculate

Evaluates the Multidimensional Expressions (MDX) expression under a specified tuple and returns the scalar result.

Spazio dei nomi  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)

Sintassi

'Dichiarazione
Public Function Calculate ( _
    tuple As Tuple _
) As MDXValue
'Utilizzo
Dim instance As Expression 
Dim tuple As Tuple 
Dim returnValue As MDXValue 

returnValue = instance.Calculate(tuple)
public MDXValue Calculate(
    Tuple tuple
)
public:
MDXValue^ Calculate(
    Tuple^ tuple
)
member Calculate : 
        tuple:Tuple -> MDXValue
public function Calculate(
    tuple : Tuple
) : MDXValue

Parametri

Valore restituito

Tipo: Microsoft.AnalysisServices.AdomdServer.MDXValue
An MDXValue that contains the scalar result of the MDX expression.

Osservazioni

The type of the MDXValue is a scalar value, such as an integer, a double, or a string. The MDXValue that is returned can be cast using one of the To methods, such as ToInt32, ToDouble, or ToString. The MDXValue can also be cast by language-specific casting.

To retrieve a non-scalar value, such as a Set, Tuple, or Member, after evaluating an MDX expression, use the CalculateMdxObject method.

Vedere anche

Riferimento

Expression Classe

Spazio dei nomi Microsoft.AnalysisServices.AdomdServer