Share via


DependencyCollection.IndexOf Method

Returns the index value of the DependencyCollectionNode object within the DependencyCollection object.

Namespace:  Microsoft.SqlServer.Management.Smo
Assembly:  Microsoft.SqlServer.Smo (in Microsoft.SqlServer.Smo.dll)

Syntax

'Declaration
Public Function IndexOf ( _
    dependencyCollectionNode As DependencyCollectionNode _
) As Integer
'Usage
Dim instance As DependencyCollection 
Dim dependencyCollectionNode As DependencyCollectionNode 
Dim returnValue As Integer 

returnValue = instance.IndexOf(dependencyCollectionNode)
public int IndexOf(
    DependencyCollectionNode dependencyCollectionNode
)
public:
virtual int IndexOf(
    DependencyCollectionNode^ dependencyCollectionNode
) sealed
abstract IndexOf : 
        dependencyCollectionNode:DependencyCollectionNode -> int  
override IndexOf : 
        dependencyCollectionNode:DependencyCollectionNode -> int
public final function IndexOf(
    dependencyCollectionNode : DependencyCollectionNode
) : int

Parameters

Return Value

Type: System.Int32
An Int32 value that specifies the index position of the specified object in the collection.

Implements

IList<T>.IndexOf(T)

Examples

Scripting

See Also

Reference

DependencyCollection Class

Microsoft.SqlServer.Management.Smo Namespace