ModelComponentCollection.IndexOf Method (String)

 

Applies To: SQL Server (starting with 2016)

Returns the zero-based index of the first occurrence of an IModelComponent that has the specified key in the ModelComponentCollection.

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

Syntax

protected int IndexOf(
    string key
)
protected:
int IndexOf(
    String^ key
)
member IndexOf : 
        key:string -> int
Protected Function IndexOf (
    key As String
) As Integer

Parameters

Return Value

Type: System.Int32

The zero-based index of the first occurrence of key within the ModelComponentCollection, if found; otherwise, -1.

See Also

IndexOf Overload
ModelComponentCollection Class
Microsoft.AnalysisServices Namespace

Return to top