共用方式為


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.

平台

開發平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

目標平台

如需受支援的平台清單,請參閱<安裝 SQL Server 2005 的硬體和軟體需求>。

請參閱

參考

MiningModel Class
MiningModel Members
Microsoft.AnalysisServices.AdomdServer Namespace