System.Security.Permissions.KeyContainerPermissionAccessEntryCollection.IndexOf Method

Gets the index in the collection of the specified System.Security.Permissions.KeyContainerPermissionAccessEntry object, if it exists in the collection.

Syntax

public int IndexOf (KeyContainerPermissionAccessEntry accessEntry)

Parameters

accessEntry
The System.Security.Permissions.KeyContainerPermissionAccessEntry object to locate.

Returns

The index of the specified System.Security.Permissions.KeyContainerPermissionAccessEntry object in the collection, or –1 if no match is found.

Remarks

Use this method to determine the index number of the specified System.Security.Permissions.KeyContainerPermissionAccessEntry object in the collection. If the specified System.Security.Permissions.KeyContainerPermissionAccessEntry object is not found, an value of –1 is returned.

Requirements

Namespace: System.Security.Permissions
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 2.0.0.0, 4.0.0.0
Since: .NET 2.0