Compartilhar via


ScopeNodeCollection.IndexOf Method (ScopeNode)

 

Determines the index of a specific ScopeNode object in the collection.

Namespace:   Microsoft.ManagementConsole
Assembly:  Microsoft.ManagementConsole (in Microsoft.ManagementConsole.dll)

Syntax

public int IndexOf(
    ScopeNode item
)
public:
int IndexOf(
    ScopeNode^ item
)
member IndexOf : 
        item:ScopeNode -> int
Public Function IndexOf (
    item As ScopeNode
) As Integer

Parameters

Return Value

Type: System.Int32

If the scope node is in the collection, this value is its index; otherwise, this value is -1.

See Also

ScopeNodeCollection Class
Microsoft.ManagementConsole Namespace

Return to top