X509CertificateCollection 類別

定義

定義儲存 X509Certificate 物件的集合。Defines a collection that stores X509Certificate objects.

public ref class X509CertificateCollection : System::Collections::CollectionBase
public ref class X509CertificateCollection : System::Collections::IList
public class X509CertificateCollection : System.Collections.CollectionBase
public class X509CertificateCollection : System.Collections.IList
[System.Serializable]
public class X509CertificateCollection : System.Collections.CollectionBase
type X509CertificateCollection = class
    inherit CollectionBase
type X509CertificateCollection = class
    interface ICollection
    interface IEnumerable
    interface IList
[<System.Serializable>]
type X509CertificateCollection = class
    inherit CollectionBase
Public Class X509CertificateCollection
Inherits CollectionBase
Public Class X509CertificateCollection
Implements IList
繼承
X509CertificateCollection
繼承
X509CertificateCollection
衍生
屬性
實作

建構函式

X509CertificateCollection()

初始化 X509CertificateCollection 類別的新執行個體。Initializes a new instance of the X509CertificateCollection class.

X509CertificateCollection(X509Certificate[])

X509Certificate 物件的陣列,初始化 X509CertificateCollection 類別的新執行個體。Initializes a new instance of the X509CertificateCollection class from an array of X509Certificate objects.

X509CertificateCollection(X509CertificateCollection)

初始化來自另一個 X509CertificateCollectionX509CertificateCollection 類別的新執行個體。Initializes a new instance of the X509CertificateCollection class from another X509CertificateCollection.

屬性

Capacity

取得或設定 CollectionBase 可包含的項目數目。Gets or sets the number of elements that the CollectionBase can contain.

(繼承來源 CollectionBase)
Count

取得集合所包含的項目數目。Gets the number of elements contained in the collection.

Count

取得 CollectionBase 執行個體中包含的元素數目。Gets the number of elements contained in the CollectionBase instance. 這個屬性無法覆寫。This property cannot be overridden.

(繼承來源 CollectionBase)
InnerList

取得包含 ArrayList 執行個體中之元素清單的 CollectionBaseGets an ArrayList containing the list of elements in the CollectionBase instance.

(繼承來源 CollectionBase)
Item[Int32]

取得或設定目前 X509CertificateCollection 之指定索引處的項目。Gets or sets the entry at the specified index of the current X509CertificateCollection.

List

取得包含 IList 執行個體中之元素清單的 CollectionBaseGets an IList containing the list of elements in the CollectionBase instance.

(繼承來源 CollectionBase)

方法

Add(X509Certificate)

X509Certificate 以指定的值加入目前的 X509CertificateCollectionAdds an X509Certificate with the specified value to the current X509CertificateCollection.

AddRange(X509Certificate[])

X509Certificate 類型的陣列項目複製到目前 X509CertificateCollection 的結尾。Copies the elements of an array of type X509Certificate to the end of the current X509CertificateCollection.

AddRange(X509CertificateCollection)

將所指定 X509CertificateCollection 的項目複製到目前 X509CertificateCollection 的結尾。Copies the elements of the specified X509CertificateCollection to the end of the current X509CertificateCollection.

Clear()

移除集合的所有項目。Removes all items from the collection.

Clear()

CollectionBase 執行個體移除所有的物件。Removes all objects from the CollectionBase instance. 無法覆寫這個方法。This method cannot be overridden.

(繼承來源 CollectionBase)
Contains(X509Certificate)

取得值,這個值表示目前的 X509CertificateCollection 是否包含指定的 X509CertificateGets a value indicating whether the current X509CertificateCollection contains the specified X509Certificate.

CopyTo(X509Certificate[], Int32)

將目前 X509CertificateCollection 中的 X509Certificate 值複製到位於指定索引的一維 Array 執行個體。Copies the X509Certificate values in the current X509CertificateCollection to a one-dimensional Array instance at the specified index.

Equals(Object)

判斷指定的物件是否等於目前的物件。Determines whether the specified object is equal to the current object.

(繼承來源 Object)
GetEnumerator()

傳回可用來逐一查看 X509CertificateCollection 的列舉值。Returns an enumerator that can iterate through the X509CertificateCollection.

GetHashCode()

建置以目前 X509CertificateCollection 中包含的所有值為基礎的雜湊值。Builds a hash value based on all values contained in the current X509CertificateCollection.

GetType()

取得目前執行個體的 TypeGets the Type of the current instance.

(繼承來源 Object)
IndexOf(X509Certificate)

傳回在目前 X509CertificateCollection 中指定的 X509Certificate 索引。Returns the index of the specified X509Certificate in the current X509CertificateCollection.

Insert(Int32, X509Certificate)

X509Certificate 插入指定索引處的目前 X509CertificateCollectionInserts a X509Certificate into the current X509CertificateCollection at the specified index.

MemberwiseClone()

建立目前 Object 的淺層複製。Creates a shallow copy of the current Object.

(繼承來源 Object)
OnClear()

在清除 CollectionBase 執行個體的內容之後,執行額外的自訂處理序。Performs additional custom processes when clearing the contents of the CollectionBase instance.

(繼承來源 CollectionBase)
OnClearComplete()

在清除 CollectionBase 執行個體的內容後,執行額外的自訂處理序。Performs additional custom processes after clearing the contents of the CollectionBase instance.

(繼承來源 CollectionBase)
OnInsert(Int32, Object)

在將新的元素插入至 CollectionBase 執行個體前,執行額外的自訂處理序。Performs additional custom processes before inserting a new element into the CollectionBase instance.

(繼承來源 CollectionBase)
OnInsertComplete(Int32, Object)

在將新的元素插入至 CollectionBase 執行個體後,執行額外的自訂處理序。Performs additional custom processes after inserting a new element into the CollectionBase instance.

(繼承來源 CollectionBase)
OnRemove(Int32, Object)

當從 CollectionBase 執行個體移除元素時,執行額外的自訂處理序。Performs additional custom processes when removing an element from the CollectionBase instance.

(繼承來源 CollectionBase)
OnRemoveComplete(Int32, Object)

在從 CollectionBase 執行個體移除元素後,執行額外的自訂處理序。Performs additional custom processes after removing an element from the CollectionBase instance.

(繼承來源 CollectionBase)
OnSet(Int32, Object, Object)

CollectionBase 執行個體中設定數值前,執行額外的自訂處理序。Performs additional custom processes before setting a value in the CollectionBase instance.

(繼承來源 CollectionBase)
OnSetComplete(Int32, Object, Object)

CollectionBase 執行個體中設定數值後,執行額外的自訂處理序。Performs additional custom processes after setting a value in the CollectionBase instance.

(繼承來源 CollectionBase)
OnValidate(Object)

當驗證數值時,執行額外的自訂處理序。Performs additional custom processes when validating a value.

OnValidate(Object)

當驗證數值時,執行額外的自訂處理序。Performs additional custom processes when validating a value.

(繼承來源 CollectionBase)
Remove(X509Certificate)

從目前的 X509CertificateCollection 中移除特定 X509CertificateRemoves a specific X509Certificate from the current X509CertificateCollection.

RemoveAt(Int32)

移除指定索引中的項目。Removes the element at the specified index.

RemoveAt(Int32)

移除 CollectionBase 執行個體之指定索引的元素。Removes the element at the specified index of the CollectionBase instance. 這個方法不可覆寫。This method is not overridable.

(繼承來源 CollectionBase)
ToString()

傳回代表目前物件的字串。Returns a string that represents the current object.

(繼承來源 Object)

明確介面實作

ICollection.CopyTo(Array, Int32)

從目標陣列的指定索引處開始,將整個集合複製到相容的一維陣列。Copies the entire collection to a compatible one-dimensional array, starting at the specified index of the target array.

ICollection.CopyTo(Array, Int32)

從目標陣列的指定索引開始,將整個 CollectionBase 複製到相容的一維 ArrayCopies the entire CollectionBase to a compatible one-dimensional Array, starting at the specified index of the target array.

(繼承來源 CollectionBase)
ICollection.IsSynchronized

取得值,表示是否同步化存取集合 (執行緒安全)。Gets a value indicating whether access to the collection is synchronized (thread safe).

ICollection.IsSynchronized

取得值,這個值表示對 CollectionBase 的存取是否同步 (安全執行緒)。Gets a value indicating whether access to the CollectionBase is synchronized (thread safe).

(繼承來源 CollectionBase)
ICollection.SyncRoot

取得物件,這個物件可以用來對集合進行同步存取。Gets an object that can be used to synchronize access to the collection.

ICollection.SyncRoot

取得可用以同步存取 CollectionBase 的物件。Gets an object that can be used to synchronize access to the CollectionBase.

(繼承來源 CollectionBase)
IEnumerable.GetEnumerator()

傳回逐一查看集合的列舉值。Returns an enumerator that iterates through the collection.

IList.Add(Object)

將物件加入至集合結尾。Adds an object to the end of the collection.

IList.Add(Object)

將物件加入至 CollectionBase 的末端。Adds an object to the end of the CollectionBase.

(繼承來源 CollectionBase)
IList.Contains(Object)

判斷集合是否包含特定的元素。Determines whether the collection contains a specific element.

IList.Contains(Object)

判斷 CollectionBase 是否包含特定項目。Determines whether the CollectionBase contains a specific element.

(繼承來源 CollectionBase)
IList.IndexOf(Object)

搜尋指定的物件,並傳回集合中第一個符合項目之以零起始的索引。Searches for the specified object and returns the zero-based index of the first occurrence within the collection.

IList.IndexOf(Object)

搜尋指定的 Object,並傳回在整個 CollectionBase 中第一個符合項目之以零為起始的索引。Searches for the specified Object and returns the zero-based index of the first occurrence within the entire CollectionBase.

(繼承來源 CollectionBase)
IList.Insert(Int32, Object)

將元素插入集合中指定的索引處。Inserts an element into the collection at the specified index.

IList.Insert(Int32, Object)

將項目插入至 CollectionBase 中指定的索引位置。Inserts an element into the CollectionBase at the specified index.

(繼承來源 CollectionBase)
IList.IsFixedSize

取得值,這個值表示集合的大小是否是固定的。Gets a value indicating whether the collection has a fixed size.

IList.IsFixedSize

取得值,指出 CollectionBase 是否有固定的大小。Gets a value indicating whether the CollectionBase has a fixed size.

(繼承來源 CollectionBase)
IList.IsReadOnly

取得值,表示集合是否為唯讀。Gets a value indicating whether the collection is read-only.

IList.IsReadOnly

取得值,指出 CollectionBase 是否唯讀。Gets a value indicating whether the CollectionBase is read-only.

(繼承來源 CollectionBase)
IList.Item[Int32]

在指定的索引位置上取得或設定項目。Gets or sets the element at the specified index.

IList.Item[Int32]

在指定的索引位置上取得或設定項目。Gets or sets the element at the specified index.

(繼承來源 CollectionBase)
IList.Remove(Object)

從集合中移除第一個出現的特定物件。Removes the first occurrence of a specific object from the collection.

IList.Remove(Object)

CollectionBase 移除特定物件之第一個符合的元素。Removes the first occurrence of a specific object from the CollectionBase.

(繼承來源 CollectionBase)

擴充方法

Cast<TResult>(IEnumerable)

IEnumerable 的項目轉換成指定的型別。Casts the elements of an IEnumerable to the specified type.

OfType<TResult>(IEnumerable)

根據指定的型別來篩選 IEnumerable 的項目。Filters the elements of an IEnumerable based on a specified type.

AsParallel(IEnumerable)

啟用查詢的平行化作業。Enables parallelization of a query.

AsQueryable(IEnumerable)

IEnumerable 轉換成 IQueryableConverts an IEnumerable to an IQueryable.

適用於