KeyContainerPermissionAccessEntryCollection 類別

定義

警告

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

表示 KeyContainerPermissionAccessEntry 物件的集合。 此類別無法獲得繼承。

public ref class KeyContainerPermissionAccessEntryCollection sealed : 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}")]
public sealed class KeyContainerPermissionAccessEntryCollection : System.Collections.ICollection
[System.Runtime.InteropServices.ComVisible(true)]
[System.Serializable]
public sealed class KeyContainerPermissionAccessEntryCollection : System.Collections.ICollection
type KeyContainerPermissionAccessEntryCollection = class
    interface ICollection
    interface IEnumerable
[<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
Public NotInheritable Class KeyContainerPermissionAccessEntryCollection
Implements ICollection
繼承
KeyContainerPermissionAccessEntryCollection
屬性
實作

備註

警告

程式碼啟用安全性 (CAS) 在所有版本的 .NET Framework 和 .NET 中已被取代。 最新版本的 .NET 不接受 CAS 批註,並在使用 CAS 相關 API 時產生錯誤。 開發人員應該尋求替代方式來完成安全性工作。

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

建構函式

KeyContainerPermissionAccessEntryCollection()
已淘汰.

初始化 KeyContainerPermissionAccessEntryCollection 類別的新執行個體。

屬性

Count
已淘汰.

取得集合中的項目數目。

IsSynchronized
已淘汰.

取得值,指出集合是否為同步 (執行緒安全)。

Item[Int32]
已淘汰.

取得位於集合中指定索引處的項目。

SyncRoot
已淘汰.

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

方法

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)

明確介面實作

ICollection.CopyTo(Array, Int32)
已淘汰.

複製集合的項目至相容的一維陣列,從目標陣列的指定索引開始。

IEnumerable.GetEnumerator()
已淘汰.

傳回 KeyContainerPermissionAccessEntryEnumerator 物件,此物件可用於逐一查看集合中的物件。

擴充方法

Cast<TResult>(IEnumerable)
已淘汰.

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

OfType<TResult>(IEnumerable)
已淘汰.

根據指定的型別來篩選 IEnumerable 的項目。

AsParallel(IEnumerable)
已淘汰.

啟用查詢的平行化作業。

AsQueryable(IEnumerable)
已淘汰.

IEnumerable 轉換成 IQueryable

適用於

另請參閱