共用方式為


NodeSubItemDisplayNameCollection.IndexOf Method (String)

 

Determines the index of a specific node sub-item display name in the collection.

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

Syntax

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

Parameters

  • displayName
    Type: System.String

    The node sub-item display name to locate in the collection.

Return Value

Type: System.Int32

If the node sub-item display name is in the collection, this value is its index; otherwise, this value is -1.

See Also

NodeSubItemDisplayNameCollection Class
Microsoft.ManagementConsole Namespace

Return to top