語言

KeyContainerPermissionAccessEntryCollection 類別

定義

警告

Code Access Security is not supported or honored by the runtime.

代表一組 KeyContainerPermissionAccessEntry 物件。 此類別無法獲得繼承。

public ref class KeyContainerPermissionAccessEntryCollection sealed : System::Collections::ICollection
[System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public sealed class KeyContainerPermissionAccessEntryCollection : System.Collections.ICollection
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class KeyContainerPermissionAccessEntryCollection : System.Collections.ICollection
public sealed class KeyContainerPermissionAccessEntryCollection : System.Collections.ICollection
[<System.Obsolete("Code Access Security is not supported or honored by the runtime.", DiagnosticId="SYSLIB0003", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
type KeyContainerPermissionAccessEntryCollection = class
    interface ICollection
    interface IEnumerable
[<System.Runtime.InteropServices.ComVisible(true)>]
[<System.Serializable>]
type KeyContainerPermissionAccessEntryCollection = class
    interface ICollection
    interface IEnumerable
type KeyContainerPermissionAccessEntryCollection = class
    interface ICollection
    interface IEnumerable
Public NotInheritable Class KeyContainerPermissionAccessEntryCollection
Implements ICollection
繼承
KeyContainerPermissionAccessEntryCollection
屬性
實作

備註

注意事項

.NET Framework 和 .NET 的所有版本中,代碼存取安全性(CAS)已被棄用。 最新版本的 .NET 不會接受 CAS 註釋,如果使用 CAS 相關 API,則會產生錯誤。 開發人員應尋求其他方法來完成安全任務。

KeyContainerPermissionAccessEntry 物件會指定特定金鑰容器的存取權限。

建構函式

名稱 Description
KeyContainerPermissionAccessEntryCollection()
已淘汰.

初始化 KeyContainerPermissionAccessEntryCollection 類別的新實例。

屬性

名稱 Description
Count
已淘汰.

取得集合中的項目數目。

IsSynchronized
已淘汰.

會獲得一個值,表示該集合是否同步(執行緒安全)。

Item[Int32]
已淘汰.

在集合中取得指定的索引項目。

SyncRoot
已淘汰.

取得對象,這個物件可用來同步存取集合。

方法

名稱 Description
Add(KeyContainerPermissionAccessEntry)
已淘汰.

新增一個 KeyContainerPermissionAccessEntry 物件到集合中。

Clear()
已淘汰.

移除集合中的所有 KeyContainerPermissionAccessEntry 物件。

CopyTo(Array, Int32)
已淘汰.

從特定ICollection索引開始,將 的Array元素複製到 Array。

CopyTo(KeyContainerPermissionAccessEntry[], Int32)
已淘汰.

將集合的元素複製到相容的一維陣列,從目標陣列指定的索引開始。

Equals(Object)
已淘汰.

判斷指定的物件是否等於目前的物件。

(繼承來源 Object)
GetEnumerator()
已淘汰.

回傳一個 KeyContainerPermissionAccessEntryEnumerator 物件,可用於遍歷集合中的物件。

GetHashCode()
已淘汰.

做為預設哈希函式。

(繼承來源 Object)
GetType()
已淘汰.

取得目前實例的 Type。

(繼承來源 Object)
IndexOf(KeyContainerPermissionAccessEntry)
已淘汰.

如果該集合中存在該物件,則取得該集合中的索引 KeyContainerPermissionAccessEntry 。

MemberwiseClone()
已淘汰.

建立目前 Object的淺層複本。

(繼承來源 Object)
Remove(KeyContainerPermissionAccessEntry)
已淘汰.

從集合中移除指定的 KeyContainerPermissionAccessEntry 物件。

ToString()
已淘汰.

傳回表示目前 物件的字串。

(繼承來源 Object)

明確介面實作

名稱 Description
ICollection.CopyTo(Array, Int32)
已淘汰.

將集合的元素複製到相容的一維陣列,從目標陣列指定的索引開始。

IEnumerable.GetEnumerator()
已淘汰.

回傳一個 KeyContainerPermissionAccessEntryEnumerator 物件,可用於遍歷集合中的物件。

擴充方法

名稱 Description
AsParallel(IEnumerable)
已淘汰.

啟用查詢的平行處理。

AsQueryable(IEnumerable)
已淘汰.

將 IEnumerable 轉換成 IQueryable。

Cast<TResult>(IEnumerable)
已淘汰.

將 IEnumerable 的項目轉換成指定的型別。

OfType<TResult>(IEnumerable)
已淘汰.

根據指定的型別篩選 IEnumerable 的專案。

適用於

另請參閱