MiningModel.GetNodeFromUniqueName 方法
Returns a MiningContentNode from the Content collection, using the UniqueName property of the MiningContentNode.
命名空間: Microsoft.AnalysisServices.AdomdServer
組件: msmgdsrv (在 msmgdsrv.dll 中)
語法
'宣告
Public Function GetNodeFromUniqueName ( _
uniqueName As String _
) As MiningContentNode
'用途
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
參數
- uniqueName
型別:System.String
The unique name of the MiningContentNode to be retrieved.
傳回值
型別:Microsoft.AnalysisServices.AdomdServer.MiningContentNode
The requested MiningContentNode if found; otherwise, nullnull 參考 (在 Visual Basic 中為 Nothing).
範例
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;
}