MiningModel.GetNodeFromUniqueName Method
Returns a MiningContentNode from the Content collection, using the UniqueName property of the MiningContentNode.
Namespace: Microsoft.AnalysisServices.AdomdServer
Assembly: msmgdsrv (in msmgdsrv.dll)
Syntax
'Declaration
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
Parameters
- uniqueName
The unique name of the MiningContentNode to be retrieved.
Return Value
The requested MiningContentNode if found; otherwise, null.
Example
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;
}
Thread Safety
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.
Platforms
Development Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
Target Platforms
For a list of the supported platforms, see Hardware and Software Requirements for Installing SQL Server 2005.
See Also
Reference
MiningModel Class
MiningModel Members
Microsoft.AnalysisServices.AdomdServer Namespace