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
Parameter
- uniqueName
The unique name of the MiningContentNode to be retrieved.
Rückgabewert
The requested MiningContentNode if found; otherwise, null.
Beispiel
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;
}
Threadsicherheit
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.
Plattformen
Entwicklungsplattformen
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Zielplattforme
Eine Liste der unterstützten Plattformen finden Sie unterHardware- und Softwareanforderungen für die Installation von SQL Server 2005.
Siehe auch
Verweis
MiningModel Class
MiningModel Members
Microsoft.AnalysisServices.AdomdServer Namespace