Compartir a través de


MiningModel.GetNodeFromUniqueName Method

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

Espacio de nombres: Microsoft.AnalysisServices.AdomdServer
Ensamblado: msmgdsrv (in msmgdsrv.dll)

Sintaxis

'Declaración
Public Function GetNodeFromUniqueName ( _
    uniqueName As String _
) As MiningContentNode
public MiningContentNode GetNodeFromUniqueName (
    string uniqueName
)
public:
MiningContentNode^ GetNodeFromUniqueName (
    String^ uniqueName
)
public MiningContentNode GetNodeFromUniqueName (
    String uniqueName
)
public function GetNodeFromUniqueName (
    uniqueName : String
) : MiningContentNode

Parámetros

Valor devuelto

The requested MiningContentNode if found; otherwise, null.

Ejemplo

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;
}

Seguridad para subprocesos

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.

Plataformas

Plataformas de desarrollo

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Plataformas de destino

Para obtener una lista de las plataformas compatibles, vea Requisitos de hardware y software para instalar SQL Server 2005.

Vea también

Referencia

MiningModel Class
MiningModel Members
Microsoft.AnalysisServices.AdomdServer Namespace