Context.CurrentCube 屬性
取得目前的 Cube。
命名空間: Microsoft.AnalysisServices.AdomdServer
組件: msmgdsrv (在 msmgdsrv.dll 中)
語法
'宣告
Public Shared ReadOnly Property CurrentCube As CubeDef
Get
'用途
Dim value As CubeDef
value = Context.CurrentCube
public static CubeDef CurrentCube { get; }
public:
static property CubeDef^ CurrentCube {
CubeDef^ get ();
}
static member CurrentCube : CubeDef
static function get CurrentCube () : CubeDef
屬性值
型別:Microsoft.AnalysisServices.AdomdServer.CubeDef
表示目前 Cube 的 CubeDef,若不適用則為 nullnull 參考 (在 Visual Basic 中為 Nothing)。
備註
從資料採礦延伸模組 (DMX) 查詢呼叫或是做為預存程序呼叫時,傳回值將會是 nullnull 參考 (在 Visual Basic 中為 Nothing)。 如需有關使用者定義函數 (UDF) 與預存程序之間差異的詳細資訊,請參閱<使用者定義函數和預存程序>。