KeyContainerPermissionAccessEntryCollection.Remove(KeyContainerPermissionAccessEntry) 方法

定义

从集合中移除指定的 KeyContainerPermissionAccessEntry 对象。Removes the specified KeyContainerPermissionAccessEntry object from the collection.

public:
 void Remove(System::Security::Permissions::KeyContainerPermissionAccessEntry ^ accessEntry);
public void Remove (System.Security.Permissions.KeyContainerPermissionAccessEntry accessEntry);
member this.Remove : System.Security.Permissions.KeyContainerPermissionAccessEntry -> unit
Public Sub Remove (accessEntry As KeyContainerPermissionAccessEntry)

参数

例外

accessEntrynullaccessEntry is null.

注解

从集合中移除项时,集合中的后续项的索引值会发生更改。When you remove an item from the collection, the index values change for subsequent items in the collection. 删除的项的所有信息都将被删除。All information about the removed item is deleted. 如果希望通过指定要删除的实际项来删除特定项,请使用此方法。Use this method when you want to remove a specific item by specifying the actual item to remove. 若要从列表中删除所有项,请使用 Clear 方法。To remove all items from the list, use the Clear method.

适用于