ReferenceList ReferenceList ReferenceList ReferenceList Class

定義

表示用於 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
繼承
ReferenceListReferenceListReferenceListReferenceList
實作

備註

ReferenceList類別代表<ReferenceList>加密文件 XML 簽章由 XML 加密規格所定義的項目。The ReferenceList class represents the <ReferenceList> element of an encrypted document XML signature defined by the XML encryption specification.

ReferenceList類別包含的參考EncryptedDataEncryptedKey由包含在另一個金鑰所加密的項目EncryptedKey項目。The ReferenceList class contains references to EncryptedData and EncryptedKey elements that were encrypted by a key contained within another EncryptedKey element. ReferenceList類別會使用DataReference項目參考EncryptedData項目,以及KeyReference項目參考EncryptedKey項目。The ReferenceList class uses DataReference elements to reference EncryptedData elements, and KeyReference elements to reference EncryptedKey elements.

您可以只新增DataReference或是KeyReference物件至ReferenceList集合。You can add only DataReference or KeyReference objects to the ReferenceList collection.

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

建構函式

ReferenceList() ReferenceList() ReferenceList() ReferenceList()

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

屬性

Count Count Count Count

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

IsSynchronized IsSynchronized IsSynchronized IsSynchronized

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

ItemOf[Int32] ItemOf[Int32] ItemOf[Int32] ItemOf[Int32]

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

SyncRoot SyncRoot SyncRoot SyncRoot

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

方法

Add(Object) Add(Object) Add(Object) Add(Object)

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

Clear() Clear() Clear() Clear()

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

Contains(Object) Contains(Object) Contains(Object) Contains(Object)

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

CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32) CopyTo(Array, Int32)

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

Equals(Object) Equals(Object) Equals(Object) Equals(Object)

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

(Inherited from Object)
GetEnumerator() GetEnumerator() GetEnumerator() GetEnumerator()

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

GetHashCode() GetHashCode() GetHashCode() GetHashCode()

做為預設雜湊函式。Serves as the default hash function.

(Inherited from Object)
GetType() GetType() GetType() GetType()

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

(Inherited from Object)
IndexOf(Object) IndexOf(Object) IndexOf(Object) IndexOf(Object)

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

Insert(Int32, Object) Insert(Int32, Object) Insert(Int32, Object) Insert(Int32, Object)

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

Item(Int32) Item(Int32) Item(Int32) Item(Int32)

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

MemberwiseClone() MemberwiseClone() MemberwiseClone() MemberwiseClone()

建立目前 Object 的淺層複本 (Shallow Copy)。Creates a shallow copy of the current Object.

(Inherited from Object)
Remove(Object) Remove(Object) Remove(Object) Remove(Object)

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

RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32) RemoveAt(Int32)

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

ToString() ToString() ToString() ToString()

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

(Inherited from Object)

明確介面實作

IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize IList.IsFixedSize

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

IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly IList.IsReadOnly

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

IList.Item[Int32] IList.Item[Int32] IList.Item[Int32] IList.Item[Int32]

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

Extension Methods

Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable) Cast<TResult>(IEnumerable)

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

OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable) OfType<TResult>(IEnumerable)

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

AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable) AsParallel(IEnumerable)

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

AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable) AsQueryable(IEnumerable)

將轉換IEnumerableIQueryableConverts an IEnumerable to an IQueryable.

適用於