IndexedProtocolEndpointDictionary 类

定义

IndexedProtocolEndpoint 的分类列表。A sorted list of IndexedProtocolEndpoint.

public ref class IndexedProtocolEndpointDictionary : System::Collections::Generic::SortedList<int, System::IdentityModel::Metadata::IndexedProtocolEndpoint ^>
public class IndexedProtocolEndpointDictionary : System.Collections.Generic.SortedList<int,System.IdentityModel.Metadata.IndexedProtocolEndpoint>
type IndexedProtocolEndpointDictionary = class
    inherit SortedList<int, IndexedProtocolEndpoint>
Public Class IndexedProtocolEndpointDictionary
Inherits SortedList(Of Integer, IndexedProtocolEndpoint)
继承
IndexedProtocolEndpointDictionary

构造函数

IndexedProtocolEndpointDictionary()

初始化 IndexedProtocolEndpointDictionary 类的新实例。Initializes a new instance of the IndexedProtocolEndpointDictionary class.

属性

Capacity

获取或设置 SortedList<TKey,TValue> 可包含的元素数。Gets or sets the number of elements that the SortedList<TKey,TValue> can contain.

(继承自 SortedList<TKey,TValue>)
Comparer

获取该排序列表的 IComparer<T>Gets the IComparer<T> for the sorted list.

(继承自 SortedList<TKey,TValue>)
Count

获取包含在 SortedList<TKey,TValue> 中的键/值对的数目。Gets the number of key/value pairs contained in the SortedList<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
Default

获取默认的 IndexedProtocolEndpointGets the default IndexedProtocolEndpoint.

Item[TKey]

获取或设置与指定的键关联的值。Gets or sets the value associated with the specified key.

(继承自 SortedList<TKey,TValue>)
Keys

获取一个按排序顺序包含 SortedList<TKey,TValue> 中的键的集合。Gets a collection containing the keys in the SortedList<TKey,TValue>, in sorted order.

(继承自 SortedList<TKey,TValue>)
Values

获取包含 SortedList<TKey,TValue> 中的值的集合。Gets a collection containing the values in the SortedList<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)

方法

Add(TKey, TValue)

将带有指定键和值的元素添加到 SortedList<TKey,TValue> 中。Adds an element with the specified key and value into the SortedList<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
Clear()

SortedList<TKey,TValue> 中移除所有元素。Removes all elements from the SortedList<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
ContainsKey(TKey)

确定 SortedList<TKey,TValue> 是否包含特定键。Determines whether the SortedList<TKey,TValue> contains a specific key.

(继承自 SortedList<TKey,TValue>)
ContainsValue(TValue)

确定 SortedList<TKey,TValue> 是否包含特定值。Determines whether the SortedList<TKey,TValue> contains a specific value.

(继承自 SortedList<TKey,TValue>)
Equals(Object)

确定指定的对象是否等于当前对象。Determines whether the specified object is equal to the current object.

(继承自 Object)
GetEnumerator()

返回循环访问 SortedList<TKey,TValue> 的枚举数。Returns an enumerator that iterates through the SortedList<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
GetHashCode()

作为默认哈希函数。Serves as the default hash function.

(继承自 Object)
GetType()

获取当前实例的 TypeGets the Type of the current instance.

(继承自 Object)
IndexOfKey(TKey)

在整个 SortedList<TKey,TValue> 中搜索指定键并返回从零开始的索引。Searches for the specified key and returns the zero-based index within the entire SortedList<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
IndexOfValue(TValue)

在整个 SortedList<TKey,TValue> 中搜索指定的值,并返回第一个匹配项的从零开始的索引。Searches for the specified value and returns the zero-based index of the first occurrence within the entire SortedList<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
MemberwiseClone()

创建当前 Object 的浅表副本。Creates a shallow copy of the current Object.

(继承自 Object)
Remove(TKey)

SortedList<TKey,TValue> 中移除包含指定键的元素。Removes the element with the specified key from the SortedList<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
RemoveAt(Int32)

移除 SortedList<TKey,TValue> 的指定索引处的元素。Removes the element at the specified index of the SortedList<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
ToString()

返回表示当前对象的字符串。Returns a string that represents the current object.

(继承自 Object)
TrimExcess()

如果元素数小于当前容量的 90%,将容量设置为 SortedList<TKey,TValue> 中的实际元素数。Sets the capacity to the actual number of elements in the SortedList<TKey,TValue>, if that number is less than 90 percent of current capacity.

(继承自 SortedList<TKey,TValue>)
TryGetValue(TKey, TValue)

获取与指定键关联的值。Gets the value associated with the specified key.

(继承自 SortedList<TKey,TValue>)

显式界面实现

ICollection.CopyTo(Array, Int32)

从特定的 ICollection 索引开始,将 Array 的元素复制到一个 Array 中。Copies the elements of the ICollection to an Array, starting at a particular Array index.

(继承自 SortedList<TKey,TValue>)
ICollection.IsSynchronized

获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。Gets a value indicating whether access to the ICollection is synchronized (thread safe).

(继承自 SortedList<TKey,TValue>)
ICollection.SyncRoot

获取可用于同步对 ICollection 的访问的对象。Gets an object that can be used to synchronize access to the ICollection.

(继承自 SortedList<TKey,TValue>)
ICollection<KeyValuePair<TKey,TValue>>.Add(KeyValuePair<TKey,TValue>)

ICollection<T> 中添加键/值对。Adds a key/value pair to the ICollection<T>.

(继承自 SortedList<TKey,TValue>)
ICollection<KeyValuePair<TKey,TValue>>.Contains(KeyValuePair<TKey,TValue>)

确定 ICollection<T> 是否包含特定元素。Determines whether the ICollection<T> contains a specific element.

(继承自 SortedList<TKey,TValue>)
ICollection<KeyValuePair<TKey,TValue>>.CopyTo(KeyValuePair<TKey,TValue>[], Int32)

从特定的 ICollection<T> 索引开始,将 Array 的元素复制到一个 Array 中。Copies the elements of the ICollection<T> to an Array, starting at a particular Array index.

(继承自 SortedList<TKey,TValue>)
ICollection<KeyValuePair<TKey,TValue>>.IsReadOnly

获取一个值,该值指示 ICollection<T> 是否为只读。Gets a value indicating whether the ICollection<T> is read-only.

(继承自 SortedList<TKey,TValue>)
ICollection<KeyValuePair<TKey,TValue>>.Remove(KeyValuePair<TKey,TValue>)

ICollection<T> 中移除特定键/值对的第一个匹配项。Removes the first occurrence of a specific key/value pair from the ICollection<T>.

(继承自 SortedList<TKey,TValue>)
IDictionary.Add(Object, Object)

IDictionary 中添加一个带有所提供的键和值的元素。Adds an element with the provided key and value to the IDictionary.

(继承自 SortedList<TKey,TValue>)
IDictionary.Contains(Object)

确定是否 IDictionary 包含带有指定键的元素。Determines whether the IDictionary contains an element with the specified key.

(继承自 SortedList<TKey,TValue>)
IDictionary.GetEnumerator()

返回 IDictionaryEnumeratorIDictionaryReturns an IDictionaryEnumerator for the IDictionary.

(继承自 SortedList<TKey,TValue>)
IDictionary.IsFixedSize

获取一个值,该值指示 IDictionary 是否具有固定大小。Gets a value indicating whether the IDictionary has a fixed size.

(继承自 SortedList<TKey,TValue>)
IDictionary.IsReadOnly

获取一个值,该值指示 IDictionary 是否为只读。Gets a value indicating whether the IDictionary is read-only.

(继承自 SortedList<TKey,TValue>)
IDictionary.Item[Object]

获取或设置具有指定键的元素。Gets or sets the element with the specified key.

(继承自 SortedList<TKey,TValue>)
IDictionary.Keys

获取包含 ICollection 的键的 IDictionaryGets an ICollection containing the keys of the IDictionary.

(继承自 SortedList<TKey,TValue>)
IDictionary.Remove(Object)

IDictionary 中移除包含指定键的元素。Removes the element with the specified key from the IDictionary.

(继承自 SortedList<TKey,TValue>)
IDictionary.Values

获取一个 ICollection,它包含 IDictionary 中的值。Gets an ICollection containing the values in the IDictionary.

(继承自 SortedList<TKey,TValue>)
IDictionary<TKey,TValue>.Keys

获取包含 ICollection<T> 的键的 IDictionary<TKey,TValue>Gets an ICollection<T> containing the keys of the IDictionary<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
IDictionary<TKey,TValue>.Values

获取一个 ICollection<T>,它包含 IDictionary<TKey,TValue> 中的值。Gets an ICollection<T> containing the values in the IDictionary<TKey,TValue>.

(继承自 SortedList<TKey,TValue>)
IEnumerable.GetEnumerator()

返回循环访问集合的枚举数。Returns an enumerator that iterates through a collection.

(继承自 SortedList<TKey,TValue>)
IEnumerable<KeyValuePair<TKey,TValue>>.GetEnumerator()

返回循环访问集合的枚举数。Returns an enumerator that iterates through a collection.

(继承自 SortedList<TKey,TValue>)
IReadOnlyDictionary<TKey,TValue>.Keys

获取包含只读字典中的密钥的可枚举集合。Gets an enumerable collection that contains the keys in the read-only dictionary.

(继承自 SortedList<TKey,TValue>)
IReadOnlyDictionary<TKey,TValue>.Values

获取包含只读字典中的值的可枚举集合。Gets an enumerable collection that contains the values in the read-only dictionary.

(继承自 SortedList<TKey,TValue>)

扩展方法

CopyToDataTable<T>(IEnumerable<T>)

在给定其泛型参数 TDataTable 的输入 DataRow 对象的情况下,返回包含 IEnumerable<T> 对象副本的 DataRowReturns a DataTable that contains copies of the DataRow objects, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

CopyToDataTable<T>(IEnumerable<T>, DataTable, LoadOption, FillErrorEventHandler)

在给定其泛型参数 TDataRow 的输入 DataTable 对象的情况下,将 IEnumerable<T> 对象复制到指定的 DataRowCopies DataRow objects to the specified DataTable, given an input IEnumerable<T> object where the generic parameter T is DataRow.

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.

Ancestors<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个节点的上级。Returns a collection of elements that contains the ancestors of every node in the source collection.

Ancestors<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个节点的上级。Returns a filtered collection of elements that contains the ancestors of every node in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

DescendantNodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子代节点的集合。Returns a collection of the descendant nodes of every document and element in the source collection.

Descendants<T>(IEnumerable<T>)

返回元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a collection of elements that contains the descendant elements of every element and document in the source collection.

Descendants<T>(IEnumerable<T>, XName)

返回经过筛选的元素集合,其中包含源集合中每个元素和文档的子代元素。Returns a filtered collection of elements that contains the descendant elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

Elements<T>(IEnumerable<T>)

返回源集合中每个元素和文档的子元素的集合。Returns a collection of the child elements of every element and document in the source collection.

Elements<T>(IEnumerable<T>, XName)

返回源集合中经过筛选的每个元素和文档的子元素集合。Returns a filtered collection of the child elements of every element and document in the source collection. 集合中仅包括具有匹配 XName 的元素。Only elements that have a matching XName are included in the collection.

InDocumentOrder<T>(IEnumerable<T>)

返回节点集合(其中包含源集合中的所有节点),并按文档顺序排列。Returns a collection of nodes that contains all nodes in the source collection, sorted in document order.

Nodes<T>(IEnumerable<T>)

返回源集合中每个文档和元素的子节点集合。Returns a collection of the child nodes of every document and element in the source collection.

Remove<T>(IEnumerable<T>)

将源集合中的每个节点从其父节点中移除。Removes every node in the source collection from its parent node.

适用于