AnnotationCollection.IndexOf Method (String)

 

Applies To: SQL Server (starting with 2016)

Gets the index of an Annotation with the specified name.

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

Syntax

public int IndexOf(
    string name
)
public:
int IndexOf(
    String^ name
)
member IndexOf : 
        name:string -> int
Public Function IndexOf (
    name As String
) As Integer

Parameters

Return Value

Type: System.Int32

The zero-based index of the Annotation specified by name, if the object is found; otherwise, -1.

See Also

IndexOf Overload
AnnotationCollection Class
Microsoft.AnalysisServices Namespace

Return to top