다음을 통해 공유


Expression.Calculate Method

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

네임스페이스: Microsoft.AnalysisServices.AdomdServer
어셈블리: msmgdsrv (in msmgdsrv.dll)

구문

‘선언
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

매개 변수

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

반환 값

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

주의

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.

스레드 보안

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.

플랫폼

개발 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

대상 플랫폼

지원되는 플랫폼 목록은 SQL Server 2005 설치를 위한 하드웨어 및 소프트웨어 요구 사항을 참조하십시오.

참고 항목

참조

Expression Class
Expression Members
Microsoft.AnalysisServices.AdomdServer Namespace