MiningModelCollection.GetByName Method
Gets the MiningModel, with the specified name, from the collection.
Namespace: Microsoft.AnalysisServices
Assembly: Microsoft.AnalysisServices (in Microsoft.AnalysisServices.dll)
Syntax
'Declaration
Public Function GetByName ( _
name As String _
) As MiningModel
'Usage
Dim instance As MiningModelCollection
Dim name As String
Dim returnValue As MiningModel
returnValue = instance.GetByName(name)
public MiningModel GetByName(
string name
)
public:
MiningModel^ GetByName(
String^ name
)
member GetByName :
name:string -> MiningModel
public function GetByName(
name : String
) : MiningModel
Parameters
- name
Type: System.String
The name of the MiningModel to be returned.
Return Value
Type: Microsoft.AnalysisServices.MiningModel
The MiningModel if contained in the collection.
Exceptions
Exception | Condition |
---|---|
ItemNotFoundException | name is not contained by the collection. |