KeyContainerPermissionAccessEntryCollection.Add(KeyContainerPermissionAccessEntry) 方法

定义

KeyContainerPermissionAccessEntry 对象添加到集合中。Adds a KeyContainerPermissionAccessEntry object to the collection.

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

参数

返回

Int32

新元素位置处插入的索引。The index at which the new element was inserted.

例外

accessEntrynullaccessEntry is null.

注解

KeyContainerPermissionAccessEntry 对象添加到集合的末尾。The KeyContainerPermissionAccessEntry object is added to the end of the collection.

适用于