CurrentMiningModel Propiedad
Gets the current mining model.
Espacio de nombres: Microsoft.AnalysisServices.AdomdServer
Ensamblado: msmgdsrv (en msmgdsrv.dll)
Sintaxis
'Declaración
Public Shared ReadOnly Property CurrentMiningModel As MiningModel
Get
'Uso
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
Valor de la propiedad
Tipo: Microsoft.AnalysisServices.AdomdServer. . :: . .MiningModel
A MiningModel that represents the current mining model; nullNothingnullptrunites una referencia NULL (Nothing en Visual Basic). if not applicable.
Notas
The return value will be null Nothing nullptr unit es una referencia NULL (Nothing en Visual Basic). 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 Funciones definidas por el usuario y procedimientos almacenados.
Ejemplos
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;
}
Vea también