Delen via


MiningModelCollection.Item Property (String)

Gets the specified MiningModel from the collection by its name.

Namespace:  Microsoft.AnalysisServices.AdomdClient
Assembly:  Microsoft.AnalysisServices.AdomdClient (in Microsoft.AnalysisServices.AdomdClient.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    index As String _
) As MiningModel
    Get
'Usage
Dim instance As MiningModelCollection
Dim index As String
Dim value As MiningModel

value = instance(index)
public MiningModel this[
    string index
] { get; }
public:
property MiningModel^ default[String^ index] {
    MiningModel^ get (String^ index);
}
member Item : MiningModel
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.AnalysisServices.AdomdClient.MiningModel
The mining model with the specified name in the collection.

Exceptions

Exception Condition
AdomdErrorResponseException

The provider returned an error in response.

AdomdUnknownResponseException

The provider sent an unrecognizable response.

AdomdConnectionException

The connection was broken.

InvalidOperationException

The MiningModel was not found in the collection.

Remarks

In Microsoft Visual C#, this property is the indexer for the MiningModelCollection class.