Delen via


MiningModelCollection.FindByName 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 FindByName ( _
    name As String _
) As MiningModel
'Usage
Dim instance As MiningModelCollection
Dim name As String
Dim returnValue As MiningModel

returnValue = instance.FindByName(name)
public MiningModel FindByName(
    string name
)
public:
MiningModel^ FindByName(
    String^ name
)
member FindByName : 
        name:string -> MiningModel 
public function FindByName(
    name : String
) : MiningModel

Parameters

Return Value

Type: Microsoft.AnalysisServices.MiningModel
The MiningModel if contained in the collection; otherwise, a null reference (Nothing in Visual Basic).