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
实现

注解

类表示由 XML 加密规范定义的加密文档 XML 签名的元素。<ReferenceList> ReferenceListThe ReferenceList class represents the <ReferenceList> element of an encrypted document XML signature defined by the XML encryption specification.

类包含对EncryptedData EncryptedKeyEncryptedKey元素的引用, 这些元素是通过包含在另一个元素中的密钥进行加密的。 ReferenceListThe ReferenceList class contains references to EncryptedData and EncryptedKey elements that were encrypted by a key contained within another EncryptedKey element. DataReference KeyReference 类使用EncryptedKey元素引用EncryptedData元素, 并使用元素引用元素。 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() 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)

DataReferenceKeyReference 对象插入到 ReferenceList 集合中的指定位置。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 的浅表副本。Creates a shallow copy of the current Object.

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

ReferenceList 集合中移除特定的 DataReferenceKeyReference 对象。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].

扩展方法

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)

IEnumerable 转换为 IQueryableConverts an IEnumerable to an IQueryable.

适用于