Partilhar via


Método MiningModel.GetNodeFromUniqueName

Returns a MiningContentNode from the Content collection, using the UniqueName property of the MiningContentNode.

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

Sintaxe

'Declaração
Public Function GetNodeFromUniqueName ( _
    uniqueName As String _
) As MiningContentNode
'Uso
Dim instance As MiningModel 
Dim uniqueName As String 
Dim returnValue As MiningContentNode 

returnValue = instance.GetNodeFromUniqueName(uniqueName)
public MiningContentNode GetNodeFromUniqueName(
    string uniqueName
)
public:
MiningContentNode^ GetNodeFromUniqueName(
    String^ uniqueName
)
member GetNodeFromUniqueName : 
        uniqueName:string -> MiningContentNode
public function GetNodeFromUniqueName(
    uniqueName : String
) : MiningContentNode

Parâmetros

Valor de retorno

Tipo: Microsoft.AnalysisServices.AdomdServer.MiningContentNode
The requested MiningContentNode if found; otherwise, nulluma referência nula (Nothing no Visual Basic).

Exemplos

The following example creates a user defined function (UDF) that returns the node description for a specified node. The UDF uses the current context in which the UDF is being run to retrieve the node from the current mining model, as determined by the Data Mining Extensions (DMX) FROM clause in the statement calling this UDF.

public string GetNodeDescription(string nodeUniqueName)
{
    return Context.CurrentMiningModel.GetNodeFromUniqueName(nodeUniqueName).Description;
}

Consulte também

Referência

MiningModel Classe

Namespace Microsoft.AnalysisServices.AdomdServer