Share via


ViewDescriptionCollection.IndexOf Method (ViewDescription)

 

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

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

Syntax

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

Parameters

Return Value

Type: System.Int32

If the view description is in the collection, this value is its index; otherwise, this value is -1.

See Also

ViewDescriptionCollection Class
Microsoft.ManagementConsole Namespace

Return to top