Share via


MiningServiceCollection.Find Method

Gets the specified MiningService from the MiningServiceCollection collection by its name.

Namespace:  Microsoft.AnalysisServices.AdomdServer
Assembly:  msmgdsrv (in msmgdsrv.dll)

Syntax

'Declaration
Public Function Find ( _
    name As String _
) As MiningService
'Usage
Dim instance As MiningServiceCollection
Dim name As String
Dim returnValue As MiningService

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

Parameters

Return Value

Type: Microsoft.AnalysisServices.AdomdServer.MiningService
The MiningService with the index name.

Remarks

If the object is not found, the Find method returns nulla null reference (Nothing in Visual Basic), whereas the Item property throws an exception.