Freigeben über


Expression.Calculate Method

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

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

Syntax

'Declaration
Public Function Calculate ( _
    tuple As Tuple _
) As MDXValue
public MDXValue Calculate (
    Tuple tuple
)
public:
MDXValue^ Calculate (
    Tuple^ tuple
)
public MDXValue Calculate (
    Tuple tuple
)
public function Calculate (
    tuple : Tuple
) : MDXValue

Parameter

  • tuple
    The tuple under which to evaluate the MDX expression.

Rückgabewert

An MDXValue that contains the scalar result of the MDX expression.

Hinweise

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.

Threadsicherheit

Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.

Plattformen

Entwicklungsplattformen

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Zielplattforme

Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.

Siehe auch

Verweis

Expression Class
Expression Members
Microsoft.AnalysisServices.AdomdServer Namespace