Поделиться через


MiningModel.GetNodeFromUniqueName Method

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

Пространство имен: Microsoft.AnalysisServices.AdomdServer
Сборка: msmgdsrv (in msmgdsrv.dll)

Синтаксис

'Декларация
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

Параметры

Возвращаемое значение

The requested MiningContentNode if found; otherwise, null.

Пример

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

Синхронизация потоков

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.

Платформы

Платформы разработки

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

Целевые платформы

Список поддерживаемых платформ см. в разделе Hardware and Software Requirements for Installing SQL Server 2005.

См. также

Справочник

MiningModel Class
MiningModel Members
Microsoft.AnalysisServices.AdomdServer Namespace