ReferenceList 類別

定義

表示用於 XML 加密的 <ReferenceList> 項目。Represents the <ReferenceList> element used in XML encryption. 這個類別無法被繼承。This class cannot be inherited.

public ref class ReferenceList sealed : System::Collections::IList
public sealed class ReferenceList : System.Collections.IList
type ReferenceList = class
    interface IList
    interface ICollection
    interface IEnumerable
Public NotInheritable Class ReferenceList
Implements IList
繼承
ReferenceList
實作

備註

類別代表 xml 加密<ReferenceList>規格所定義之加密檔 xml 簽章的元素。 ReferenceListThe ReferenceList class represents the <ReferenceList> element of an encrypted document XML signature defined by the XML encryption specification.

類別包含EncryptedData EncryptedKey和元素的參考,這些專案是由另一個專案中包含的金鑰所加密。EncryptedKey ReferenceListThe ReferenceList class contains references to EncryptedData and EncryptedKey elements that were encrypted by a key contained within another EncryptedKey element. EncryptedData KeyReference EncryptedKey類別會使用DataReference專案來參考專案, 以及參考元素的專案。 ReferenceListThe ReferenceList class uses DataReference elements to reference EncryptedData elements, and KeyReference elements to reference EncryptedKey elements.

您只能將DataReferenceKeyReference物件新增至ReferenceList集合。You can add only DataReference or KeyReference objects to the ReferenceList collection.

如需 XML 加密標準的詳細資訊, 請參閱Xml 加密語法和處理版本 1.1For more information about XML encryption standards, see XML Encryption Syntax and Processing Version 1.1.

建構函式

ReferenceList()

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

屬性

Count

取得 ReferenceList 物件中所包含的項目數。Gets the number of elements contained in the ReferenceList object.

IsSynchronized

取得值,指出 ReferenceList 的存取是否同步 (執行緒安全)。Gets a value that indicates whether access to the ReferenceList object is synchronized (thread safe).

ItemOf[Int32]

取得或設定在指定索引處的 DataReferenceKeyReference 物件。Gets or sets the DataReference or KeyReference object at the specified index.

SyncRoot

取得可用來同步處理對 ReferenceList 物件之存取的物件。Gets an object that can be used to synchronize access to the ReferenceList object.

方法

Add(Object)

DataReferenceKeyReference 物件加入 ReferenceList 集合中。Adds a DataReference or KeyReference object to the ReferenceList collection.

Clear()

將所有項目從 ReferenceList 集合中移除。Removes all items from the ReferenceList collection.

Contains(Object)

判斷 ReferenceList 集合是否含有特定的 DataReferenceKeyReference 物件。Determines whether the ReferenceList collection contains a specific DataReference or KeyReference object.

CopyTo(Array, Int32)

從指定的陣列索引開始,將 ReferenceList 物件的項目複製到陣列中。Copies the elements of the ReferenceList object to an array, starting at a specified array index.

Equals(Object)

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

(繼承來源 Object)
GetEnumerator()

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

GetHashCode()

作為預設雜湊函數。Serves as the default hash function.

(繼承來源 Object)
GetType()

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

(繼承來源 Object)
IndexOf(Object)

判斷 ReferenceList 集合中指定項目的索引。Determines the index of a specific item in the ReferenceList collection.

Insert(Int32, Object)

DataReference 集合中指定的位置插入 KeyReferenceReferenceList 物件。Inserts a DataReference or KeyReference object into the ReferenceList collection at the specified position.

Item(Int32)

傳回位於指定索引處的 DataReferenceKeyReference 物件。Returns the DataReference or KeyReference object at the specified index.

MemberwiseClone()

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

(繼承來源 Object)
Remove(Object)

DataReference 集合移除特定的 KeyReferenceReferenceList 物件第一個出現處。Removes the first occurrence of a specific DataReference or KeyReference object from the ReferenceList collection.

RemoveAt(Int32)

移除位於指定索引處的 DataReferenceKeyReference 物件。Removes the DataReference or KeyReference object at the specified index.

ToString()

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

(繼承來源 Object)

明確介面實作

IList.IsFixedSize

如需這個成員的說明,請參閱 IsFixedSizeFor a description of this member, see IsFixedSize.

IList.IsReadOnly

如需這個成員的說明,請參閱 IsReadOnlyFor a description of this member, see IsReadOnly.

IList.Item[Int32]

如需這個成員的說明,請參閱 Item[Int32]For a description of this member, see Item[Int32].

擴充方法

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.

適用於