CurrentMiningModel 속성
Gets the current mining model.
네임스페이스: Microsoft.AnalysisServices.AdomdServer
어셈블리: msmgdsrv.dll의 msmgdsrv
구문
‘선언
Public Shared ReadOnly Property CurrentMiningModel As MiningModel
Get
‘사용 방법
Dim value As MiningModel
value = Context.CurrentMiningModel
public static MiningModel CurrentMiningModel { get; }
public:
static property MiningModel^ CurrentMiningModel {
MiningModel^ get ();
}
static member CurrentMiningModel : MiningModel
static function get CurrentMiningModel () : MiningModel
속성 값
형식: Microsoft.AnalysisServices.AdomdServer. . :: . .MiningModel
A MiningModel that represents the current mining model; nullNothingnullptrunitnull 참조(Visual Basic에서는 Nothing) if not applicable.
주의
The return value will be null Nothing nullptr unit null 참조(Visual Basic에서는 Nothing) when called from a Multidimensional Expressions (MDX) query, or as a stored procedure. For more information on the differences between user-defined functions (UDFs) and stored orocedures, see 사용자 정의 함수 및 저장 프로시저.
예제
In the following example, a UDF is created that returns the node description for a specified node. It uses the current context in which it is being run, retrieves the node from the current mining model (determined by the DMX FROM clause):
public string GetNodeDescription(string nodeUniqueName)
{
return Context.CurrentMiningModel.GetNodeFromUniqueName(nodeUniqueName).Description;
}