KeyContainerPermissionAccessEntryCollection.IndexOf Method (KeyContainerPermissionAccessEntry)

 

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

Namespace:   System.Security.Permissions
Assembly:  mscorlib (in mscorlib.dll)

public int IndexOf(
	KeyContainerPermissionAccessEntry accessEntry
)

Return Value

Type: System.Int32

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

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

.NET Framework
Available since 2.0
Return to top
Show: