編輯

共用方式為


ServiceControllerPermissionEntryCollection.IndexOf Method

Definition

Determines the index of a specified permission entry in this collection.

public:
 int IndexOf(System::ServiceProcess::ServiceControllerPermissionEntry ^ value);
public int IndexOf (System.ServiceProcess.ServiceControllerPermissionEntry value);
member this.IndexOf : System.ServiceProcess.ServiceControllerPermissionEntry -> int
Public Function IndexOf (value As ServiceControllerPermissionEntry) As Integer

Parameters

value
ServiceControllerPermissionEntry

The permission entry to search for.

Returns

The zero-based index of the specified permission entry, or -1 if the permission entry was not found in the collection.

Applies to