KeyContainerPermissionAccessEntryCollection.IndexOf(KeyContainerPermissionAccessEntry) 方法

定义

获取指定的 KeyContainerPermissionAccessEntry 对象在该集合中的索引(如果它在该集合中存在)。Gets the index in the collection of the specified KeyContainerPermissionAccessEntry object, if it exists in the collection.

public:
 int IndexOf(System::Security::Permissions::KeyContainerPermissionAccessEntry ^ accessEntry);
public int IndexOf (System.Security.Permissions.KeyContainerPermissionAccessEntry accessEntry);
member this.IndexOf : System.Security.Permissions.KeyContainerPermissionAccessEntry -> int
Public Function IndexOf (accessEntry As KeyContainerPermissionAccessEntry) As Integer

参数

返回

Int32

该集合中指定的 KeyContainerPermissionAccessEntry 对象的索引,或者如果未找到匹配项则为 -1。The index of the specified KeyContainerPermissionAccessEntry object in the collection, or -1 if no match is found.

注解

使用此方法确定集合中指定对象的索引号 KeyContainerPermissionAccessEntryUse this method to determine the index number of the specified KeyContainerPermissionAccessEntry object in the collection. 如果找不到指定的 KeyContainerPermissionAccessEntry 对象,则返回值-1。If the specified KeyContainerPermissionAccessEntry object is not found, an value of -1 is returned.

适用于