1 <?xml version="1.0" encoding="utf-8"?>
4 <name>System.Collections.Concurrent</name>
7 <member name="T:System.Collections.Concurrent.BlockingCollection`1">
8 <summary>为实现 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 的线程安全集合提供阻塞和限制功能。</summary>
9 <typeparam name="T">集合中的元素类型。</typeparam>
11 <member name="M:System.Collections.Concurrent.BlockingCollection`1.#ctor">
12 <summary>初始化 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 类的新实例,该实例没有上限。</summary>
14 <member name="M:System.Collections.Concurrent.BlockingCollection`1.#ctor(System.Collections.Concurrent.IProducerConsumerCollection{`0})">
15 <summary>初始化 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 类的新实例,该实例没有上限,并使用提供的 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 作为其基础数据存储区。</summary>
16 <param name="collection">要用作基础数据存储区的集合。</param>
17 <exception cref="T:System.ArgumentNullException">
18 <paramref name="collection" /> 参数为 null。</exception>
20 <member name="M:System.Collections.Concurrent.BlockingCollection`1.#ctor(System.Collections.Concurrent.IProducerConsumerCollection{`0},System.Int32)">
21 <summary>初始化 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 类的新实例,该实例具有指定的上限,并使用提供的 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 作为其基础数据存储区。</summary>
22 <param name="collection">要用作基础数据存储区的集合。</param>
23 <param name="boundedCapacity">集合的限制大小。</param>
24 <exception cref="T:System.ArgumentNullException">
25 <paramref name="collection" /> 参数为 null。</exception>
26 <exception cref="T:System.ArgumentOutOfRangeException">
27 <paramref name="boundedCapacity" /> 不是一个正值。</exception>
28 <exception cref="T:System.ArgumentException">所提供 <paramref name="collection" /> 包含的值比 <paramref name="boundedCapacity" /> 允许的值多。</exception>
30 <member name="M:System.Collections.Concurrent.BlockingCollection`1.#ctor(System.Int32)">
31 <summary>初始化 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 类的新实例,该实例具有指定的上限。</summary>
32 <param name="boundedCapacity">集合的限制大小。</param>
33 <exception cref="T:System.ArgumentOutOfRangeException">
34 <paramref name="boundedCapacity" /> 不是一个正值。</exception>
36 <member name="M:System.Collections.Concurrent.BlockingCollection`1.Add(`0)">
37 <summary>向 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中添加项。</summary>
38 <param name="item">要添加到集合的项。该值可以是 null 引用。</param>
39 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
40 <exception cref="T:System.InvalidOperationException">
41 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已标记为已完成添加操作。- 或 -基础集合未接受该项。</exception>
43 <member name="M:System.Collections.Concurrent.BlockingCollection`1.Add(`0,System.Threading.CancellationToken)">
44 <summary>向 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中添加项。</summary>
45 <param name="item">要添加到集合的项。该值可以是 null 引用。</param>
46 <param name="cancellationToken">要观察的取消标记。</param>
47 <exception cref="T:System.OperationCanceledException">如果 <see cref="T:System.Threading.CancellationToken" />已取消。</exception>
48 <exception cref="T:System.ObjectDisposedException">
49 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已被释放,或拥有 <paramref name="cancellationToken" /> 的 <see cref="T:System.Threading.CancellationTokenSource" /> 已被释放。</exception>
50 <exception cref="T:System.InvalidOperationException">
51 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已标记为已完成添加操作。- 或 -基础集合未接受该项。</exception>
53 <member name="M:System.Collections.Concurrent.BlockingCollection`1.AddToAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0)">
54 <summary>向任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中添加指定的项。</summary>
55 <returns>将项添加到的集合在 <paramref name="collections" /> 数组中的索引。</returns>
56 <param name="collections">集合的数组。</param>
57 <param name="item">要添加到其中一个集合的项。</param>
58 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
59 <exception cref="T:System.ArgumentNullException">
60 <paramref name="collections" /> 参数为 null。</exception>
61 <exception cref="T:System.ArgumentOutOfRangeException">
62 <paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
63 <exception cref="T:System.ArgumentException">
64 <paramref name="collections" /> 参数是一个 0 长度的数组,或者包含 null 元素,或者至少其中一个集合已标记为已完成添加。</exception>
65 <exception cref="T:System.InvalidOperationException">至少一个基础集合未接受该项。</exception>
67 <member name="M:System.Collections.Concurrent.BlockingCollection`1.AddToAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0,System.Threading.CancellationToken)">
68 <summary>向任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中添加指定的项。</summary>
69 <returns>将项添加到的集合在 <paramref name="collections" /> 数组中的索引。</returns>
70 <param name="collections">集合的数组。</param>
71 <param name="item">要添加到其中一个集合的项。</param>
72 <param name="cancellationToken">要观察的取消标记。</param>
73 <exception cref="T:System.OperationCanceledException">如果 <see cref="T:System.Threading.CancellationToken" />已取消。</exception>
74 <exception cref="T:System.InvalidOperationException">至少一个基础集合未接受该项。</exception>
75 <exception cref="T:System.ArgumentNullException">
76 <paramref name="collections" /> 参数为 null。</exception>
77 <exception cref="T:System.ArgumentOutOfRangeException">
78 <paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
79 <exception cref="T:System.ArgumentException">
80 <paramref name="collections" /> 参数是一个 0 长度的数组,或者包含 null 元素,或者至少其中一个集合已标记为已完成添加。</exception>
81 <exception cref="T:System.ObjectDisposedException">至少一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已被释放的实例或创建 <paramref name="cancellationToken" /> 的 <see cref="T:System.Threading.CancellationTokenSource" /> 已被释放。</exception>
83 <member name="P:System.Collections.Concurrent.BlockingCollection`1.BoundedCapacity">
84 <summary>获取此 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例的限定容量。</summary>
85 <returns>此集合的限定容量;如果未提供限制,则为 int.MaxValue。</returns>
86 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
88 <member name="M:System.Collections.Concurrent.BlockingCollection`1.CompleteAdding">
89 <summary>将 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例标记为不再接受任何添加。</summary>
90 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
92 <member name="M:System.Collections.Concurrent.BlockingCollection`1.CopyTo(`0[],System.Int32)">
93 <summary>将 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中的所有项复制到兼容的一维数组中,复制从目标数组的指定索引处开始。</summary>
94 <param name="array">作为从 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例复制的元素的目标的一维数组。该数组的索引必须从零开始。</param>
96 <paramref name="array" /> 中从零开始的索引,将在此处开始复制。</param>
97 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
98 <exception cref="T:System.ArgumentNullException">
99 <paramref name="array" /> 参数为 null。</exception>
100 <exception cref="T:System.ArgumentOutOfRangeException">
101 <paramref name="index" /> 参数小于零。</exception>
102 <exception cref="T:System.ArgumentException">
103 <paramref name="index" /> 参数等于或大于 <paramref name="array" /> 的长度。目标数组太小,不能容纳所有 BlockingCcollection 元素。数组秩不匹配。数组类型与 BlockingCollection 元素不兼容。</exception>
105 <member name="P:System.Collections.Concurrent.BlockingCollection`1.Count">
106 <summary>获取 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中包含的项数。</summary>
108 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中包含的项数。</returns>
109 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
111 <member name="M:System.Collections.Concurrent.BlockingCollection`1.Dispose">
112 <summary>释放 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 类的当前实例所使用的所有资源。</summary>
114 <member name="M:System.Collections.Concurrent.BlockingCollection`1.Dispose(System.Boolean)">
115 <summary>释放由 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例占用的资源。</summary>
116 <param name="disposing">是显式释放 (true),还是由于终结器释放 (false)。</param>
118 <member name="M:System.Collections.Concurrent.BlockingCollection`1.GetConsumingEnumerable">
119 <summary>为集合中的项提供一个使用 <see cref="T:System.Collections.Generic.IEnumerator`1" />。</summary>
120 <returns>从集合中移除并返回项的 <see cref="T:System.Collections.Generic.IEnumerable`1" />。</returns>
121 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
123 <member name="M:System.Collections.Concurrent.BlockingCollection`1.GetConsumingEnumerable(System.Threading.CancellationToken)">
124 <summary>为集合中的项提供一个使用 <see cref="T:System.Collections.Generic.IEnumerable`1" />。</summary>
125 <returns>从集合中移除并返回项的 <see cref="T:System.Collections.Generic.IEnumerable`1" />。</returns>
126 <param name="cancellationToken">要观察的取消标记。</param>
127 <exception cref="T:System.OperationCanceledException">如果 <see cref="T:System.Threading.CancellationToken" />已取消。</exception>
128 <exception cref="T:System.ObjectDisposedException">
129 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已被释放,或创建 <paramref name="cancellationToken" /> 的 <see cref="T:System.Threading.CancellationTokenSource" /> 已被释放</exception>
131 <member name="P:System.Collections.Concurrent.BlockingCollection`1.IsAddingCompleted">
132 <summary>获取此 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 是否已标记为已完成添加。</summary>
133 <returns>此集合是否已标记为完成添加。</returns>
134 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
136 <member name="P:System.Collections.Concurrent.BlockingCollection`1.IsCompleted">
137 <summary>获取一个值,该值指示此 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 是否已标记为已完成添加并且为空。</summary>
138 <returns>此集合是否已标记为完成添加并且为空。</returns>
139 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
141 <member name="M:System.Collections.Concurrent.BlockingCollection`1.System#Collections#Generic#IEnumerable{T}#GetEnumerator">
142 <summary>为集合中的项提供一个 <see cref="T:System.Collections.Generic.IEnumerator`1" />。</summary>
143 <returns>集合中的项的 <see cref="T:System.Collections.Generic.IEnumerator`1" />。</returns>
144 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
146 <member name="M:System.Collections.Concurrent.BlockingCollection`1.System#Collections#ICollection#CopyTo(System.Array,System.Int32)">
147 <summary>将 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中的所有项复制到兼容的一维数组中,复制从目标数组的指定索引处开始。</summary>
148 <param name="array">作为从 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例复制的元素的目标的一维数组。该数组的索引必须从零开始。</param>
150 <paramref name="array" /> 中从零开始的索引,将在此处开始复制。</param>
151 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
152 <exception cref="T:System.ArgumentNullException">
153 <paramref name="array" /> 参数为 null。</exception>
154 <exception cref="T:System.ArgumentOutOfRangeException">
155 <paramref name="index" /> 参数小于零。</exception>
156 <exception cref="T:System.ArgumentException">
157 <paramref name="index" /> 参数等于或大于 <paramref name="array" /> 的长度,该数组是多维的,或集合的类型参数无法自动强制转换为目标数组的类型。</exception>
159 <member name="P:System.Collections.Concurrent.BlockingCollection`1.System#Collections#ICollection#IsSynchronized">
160 <summary>获取一个值,通过该值指示对 <see cref="T:System.Collections.ICollection" /> 的访问是否同步。</summary>
161 <returns>始终返回 false。</returns>
162 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
164 <member name="P:System.Collections.Concurrent.BlockingCollection`1.System#Collections#ICollection#SyncRoot">
165 <summary>获取一个可用于同步对 <see cref="T:System.Collections.ICollection" /> 的访问的对象。不支持此属性。</summary>
166 <returns>返回 null。</returns>
167 <exception cref="T:System.NotSupportedException">不支持 SyncRoot 属性。</exception>
169 <member name="M:System.Collections.Concurrent.BlockingCollection`1.System#Collections#IEnumerable#GetEnumerator">
170 <summary>为集合中的项提供一个 <see cref="T:System.Collections.IEnumerator" />。</summary>
171 <returns>集合中的项的 <see cref="T:System.Collections.IEnumerator" />。</returns>
172 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
174 <member name="M:System.Collections.Concurrent.BlockingCollection`1.Take">
175 <summary>从 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中移除一个项。</summary>
176 <returns>从集合中移除的项。</returns>
177 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
178 <exception cref="T:System.InvalidOperationException">基础集合在此 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例外修改,或 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 为空,并且集合已经标记为可完整地用于添加。</exception>
180 <member name="M:System.Collections.Concurrent.BlockingCollection`1.Take(System.Threading.CancellationToken)">
181 <summary>从 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中移除一个项。</summary>
182 <returns>从集合中移除的项。</returns>
183 <param name="cancellationToken">可用于取消获取操作的对象。</param>
184 <exception cref="T:System.OperationCanceledException">
185 <see cref="T:System.Threading.CancellationToken" /> 已取消。</exception>
186 <exception cref="T:System.ObjectDisposedException">
187 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已被释放,或创建该标记的 <see cref="T:System.Threading.CancellationTokenSource" /> 被取消。</exception>
188 <exception cref="T:System.InvalidOperationException">基础集合在此 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例外修改,或该 BlockingCollection 被标记为已完成添加,或 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 为空。</exception>
190 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TakeFromAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0@)">
191 <summary>从任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中获取一项。</summary>
192 <returns>从中移除项的集合在 <paramref name="collections" /> 数组中的索引。</returns>
193 <param name="collections">集合的数组。</param>
194 <param name="item">从其中一个集合中移除的项。</param>
195 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
196 <exception cref="T:System.ArgumentNullException">
197 <paramref name="collections" /> 参数为 null。</exception>
198 <exception cref="T:System.ArgumentOutOfRangeException">
199 <paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
200 <exception cref="T:System.ArgumentException">
201 <paramref name="collections" /> 参数是一个 0 长度的数组,或包含 null 元素,或 <see cref="M:System.Collections.Concurrent.BlockingCollection`1.CompleteAdding" /> 在集合上已被调用。</exception>
202 <exception cref="T:System.InvalidOperationException">至少一个基础集合已在其 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例之外进行了修改。</exception>
204 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TakeFromAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0@,System.Threading.CancellationToken)">
205 <summary>观察指定的取消标记时从任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中获取一项。</summary>
206 <returns>从中移除项的集合在 <paramref name="collections" /> 数组中的索引。</returns>
207 <param name="collections">集合的数组。</param>
208 <param name="item">从其中一个集合中移除的项。</param>
209 <param name="cancellationToken">要观察的取消标记。</param>
210 <exception cref="T:System.OperationCanceledException">如果 <see cref="T:System.Threading.CancellationToken" />已取消。</exception>
211 <exception cref="T:System.InvalidOperationException">至少一个基础集合已在其 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例之外进行了修改。</exception>
212 <exception cref="T:System.ArgumentNullException">
213 <paramref name="collections" /> 参数为 null。</exception>
214 <exception cref="T:System.ArgumentOutOfRangeException">
215 <paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
216 <exception cref="T:System.ArgumentException">
217 <paramref name="collections" /> 参数是一个 0 长度的数组,或包含 null 元素,或 <see cref="M:System.Collections.Concurrent.BlockingCollection`1.CompleteAdding" /> 在集合上已被调用。</exception>
218 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
220 <member name="M:System.Collections.Concurrent.BlockingCollection`1.ToArray">
221 <summary>将项从 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例复制到新数组中。</summary>
222 <returns>包含集合元素副本的数组。</returns>
223 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
225 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryAdd(`0)">
226 <summary>尝试将指定的项添加到 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</summary>
227 <returns>true(如果可以添加 <paramref name="item" />);否则为 false。如果该项是重复的,并且基础集合不会接受重复项,则会引发 <see cref="T:System.InvalidOperationException" />。</returns>
228 <param name="item">要添加到集合的项。</param>
229 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
230 <exception cref="T:System.InvalidOperationException">
231 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已标记为已完成添加操作。- 或 -基础集合未接受该项。</exception>
233 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryAdd(`0,System.Int32)">
234 <summary>尝试在指定的时间段内将指定的项添加到 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</summary>
235 <returns>如果在指定的时间内可以将 <paramref name="item" /> 添加到集合中,则为 true;否则为 false。如果该项是重复的,并且基础集合不会接受重复项,则会引发 <see cref="T:System.InvalidOperationException" />。</returns>
236 <param name="item">要添加到集合的项。</param>
237 <param name="millisecondsTimeout">等待的毫秒数,或为 <see cref="F:System.Threading.Timeout.Infinite" /> (-1),表示无限期等待。</param>
238 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
239 <exception cref="T:System.ArgumentOutOfRangeException">
240 <paramref name="millisecondsTimeout" /> 是一个非 -1 的负数,而 -1 表示无限期超时。</exception>
241 <exception cref="T:System.InvalidOperationException">
242 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已标记为已完成添加操作。- 或 -基础集合未接受该项。</exception>
244 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryAdd(`0,System.Int32,System.Threading.CancellationToken)">
245 <summary>在观察取消标记时,尝试在指定的时间段内将指定的项添加到 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</summary>
246 <returns>如果在指定的时间内可以将 <paramref name="item" /> 添加到集合中,则为 true;否则为 false。如果该项是重复的,并且基础集合不会接受重复项,则会引发 <see cref="T:System.InvalidOperationException" />。</returns>
247 <param name="item">要添加到集合的项。</param>
248 <param name="millisecondsTimeout">等待的毫秒数,或为 <see cref="F:System.Threading.Timeout.Infinite" /> (-1),表示无限期等待。</param>
249 <param name="cancellationToken">要观察的取消标记。</param>
250 <exception cref="T:System.OperationCanceledException">如果 <see cref="T:System.Threading.CancellationToken" />已取消。</exception>
251 <exception cref="T:System.ObjectDisposedException">
252 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已被释放,或基础 <see cref="T:System.Threading.CancellationTokenSource" /> 已被释放。</exception>
253 <exception cref="T:System.ArgumentOutOfRangeException">
254 <paramref name="millisecondsTimeout" /> 是一个非 -1 的负数,而 -1 表示无限期超时。</exception>
255 <exception cref="T:System.InvalidOperationException">
256 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已标记为已完成添加操作。- 或 -基础集合未接受该项。</exception>
258 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryAdd(`0,System.TimeSpan)">
259 <summary>尝试将指定的项添加到 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</summary>
260 <returns>如果在指定的时间跨度内可以将 <paramref name="item" /> 添加到集合中,则为 true;否则为 false。</returns>
261 <param name="item">要添加到集合的项。</param>
262 <param name="timeout">表示等待的毫秒数的 <see cref="T:System.TimeSpan" />,或表示 -1 毫秒(无限期等待)的 <see cref="T:System.TimeSpan" />。</param>
263 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
264 <exception cref="T:System.ArgumentOutOfRangeException">
265 <paramref name="timeout" /> 是 -1 毫秒之外的负数,表示无限超时或者超时大于 <see cref="F:System.Int32.MaxValue" />。</exception>
266 <exception cref="T:System.InvalidOperationException">
267 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已标记为已完成添加操作。- 或 -基础集合未接受该项。</exception>
269 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryAddToAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0)">
270 <summary>尝试将指定的项添加到任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例。</summary>
271 <returns>将项添加到的集合在 <paramref name="collections" /> 数组中的索引;如果未能添加项,则为 -1。</returns>
272 <param name="collections">集合的数组。</param>
273 <param name="item">要添加到其中一个集合的项。</param>
274 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
275 <exception cref="T:System.ArgumentNullException">
276 <paramref name="collections" /> 参数为 null。</exception>
277 <exception cref="T:System.ArgumentOutOfRangeException">
278 <paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
279 <exception cref="T:System.ArgumentException">
280 <paramref name="collections" /> 参数是一个 0 长度的数组,或者包含 null 元素,或者至少其中一个集合已标记为已完成添加。</exception>
281 <exception cref="T:System.InvalidOperationException">至少一个基础集合未接受该项。</exception>
283 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryAddToAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0,System.Int32)">
284 <summary>尝试将指定的项添加到任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例。</summary>
285 <returns>将项添加到的集合在 <paramref name="collections" /> 数组中的索引;如果未能添加项,则为 -1。</returns>
286 <param name="collections">集合的数组。</param>
287 <param name="item">要添加到其中一个集合的项。</param>
288 <param name="millisecondsTimeout">等待的毫秒数,或为 <see cref="F:System.Threading.Timeout.Infinite" /> (-1),表示无限期等待。</param>
289 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
290 <exception cref="T:System.ArgumentNullException">
291 <paramref name="collections" /> 参数为 null。</exception>
292 <exception cref="T:System.ArgumentOutOfRangeException">
293 <paramref name="millisecondsTimeout" /> 是一个非 -1 的负数,而 -1 表示无限期超时。- 或 -<paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
294 <exception cref="T:System.ArgumentException">
295 <paramref name="collections" /> 参数是一个 0 长度的数组,或者包含 null 元素,或者至少其中一个集合已标记为已完成添加。</exception>
296 <exception cref="T:System.InvalidOperationException">至少一个基础集合未接受该项。</exception>
298 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryAddToAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0,System.Int32,System.Threading.CancellationToken)">
299 <summary>尝试将指定的项添加到任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例。</summary>
300 <returns>将项添加到的集合在 <paramref name="collections" /> 数组中的索引;如果未能添加项,则为 -1。</returns>
301 <param name="collections">集合的数组。</param>
302 <param name="item">要添加到其中一个集合的项。</param>
303 <param name="millisecondsTimeout">等待的毫秒数,或为 <see cref="F:System.Threading.Timeout.Infinite" /> (-1),表示无限期等待。</param>
304 <param name="cancellationToken">要观察的取消标记。</param>
305 <exception cref="T:System.OperationCanceledException">如果 <see cref="T:System.Threading.CancellationToken" />已取消。</exception>
306 <exception cref="T:System.InvalidOperationException">至少一个基础集合未接受该项。</exception>
307 <exception cref="T:System.ArgumentNullException">
308 <paramref name="collections" /> 参数为 null。</exception>
309 <exception cref="T:System.ArgumentOutOfRangeException">
310 <paramref name="millisecondsTimeout" /> 是一个非 -1 的负数,而 -1 表示无限期超时。- 或 -<paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
311 <exception cref="T:System.ArgumentException">
312 <paramref name="collections" /> 参数是一个 0 长度的数组,或者包含 null 元素,或者至少其中一个集合已标记为已完成添加。</exception>
313 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
315 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryAddToAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0,System.TimeSpan)">
316 <summary>在观察指定的取消标记时,尝试将指定的项添加到任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例。</summary>
317 <returns>将项添加到的集合在 <paramref name="collections" /> 数组中的索引;如果未能添加项,则为 -1。</returns>
318 <param name="collections">集合的数组。</param>
319 <param name="item">要添加到其中一个集合的项。</param>
320 <param name="timeout">表示等待的毫秒数的 <see cref="T:System.TimeSpan" />,或表示 -1 毫秒(无限期等待)的 <see cref="T:System.TimeSpan" />。</param>
321 <exception cref="T:System.ObjectDisposedException">至少一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例或创建 <paramref name="cancellationToken" /> 的 <see cref="T:System.Threading.CancellationTokenSource" /> 已被释放。</exception>
322 <exception cref="T:System.ArgumentNullException">
323 <paramref name="collections" /> 参数为 null。</exception>
324 <exception cref="T:System.ArgumentOutOfRangeException">
325 <paramref name="timeout" /> 是 -1 毫秒之外的负数,表示无限超时或者超时大于 <see cref="F:System.Int32.MaxValue" />。- 或 -<paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
326 <exception cref="T:System.ArgumentException">
327 <paramref name="collections" /> 参数是一个 0 长度的数组,或者包含 null 元素,或者至少其中一个集合已标记为已完成添加。</exception>
328 <exception cref="T:System.InvalidOperationException">至少一个基础集合未接受该项。</exception>
330 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryTake(`0@)">
331 <summary>尝试从 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中移除某个项。</summary>
332 <returns>如果可以移除项,则为 true;否则为 false。</returns>
333 <param name="item">要从集合中移除的项。</param>
334 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
335 <exception cref="T:System.InvalidOperationException">基础集合已在此 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例外部进行了修改。</exception>
337 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryTake(`0@,System.Int32)">
338 <summary>尝试在指定的时间段内从 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中移除某个项。</summary>
339 <returns>如果在指定的时间内可以从集合中移除某个项,则为 true;否则为 false。</returns>
340 <param name="item">要从集合中移除的项。</param>
341 <param name="millisecondsTimeout">等待的毫秒数,或为 <see cref="F:System.Threading.Timeout.Infinite" /> (-1),表示无限期等待。</param>
342 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
343 <exception cref="T:System.ArgumentOutOfRangeException">
344 <paramref name="millisecondsTimeout" /> 是一个非 -1 的负数,而 -1 表示无限期超时。</exception>
345 <exception cref="T:System.InvalidOperationException">基础集合已在此 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例外部进行了修改。</exception>
347 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryTake(`0@,System.Int32,System.Threading.CancellationToken)">
348 <summary>在观察取消标记时,尝试在指定的时间段内从 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中移除某个项。</summary>
349 <returns>如果在指定的时间内可以从集合中移除某个项,则为 true;否则为 false。</returns>
350 <param name="item">要从集合中移除的项。</param>
351 <param name="millisecondsTimeout">等待的毫秒数,或为 <see cref="F:System.Threading.Timeout.Infinite" /> (-1),表示无限期等待。</param>
352 <param name="cancellationToken">要观察的取消标记。</param>
353 <exception cref="T:System.OperationCanceledException">
354 <see cref="T:System.Threading.CancellationToken" /> 已取消。</exception>
355 <exception cref="T:System.ObjectDisposedException">
356 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 已被释放,或基础 <see cref="T:System.Threading.CancellationTokenSource" /> 已被释放。</exception>
357 <exception cref="T:System.ArgumentOutOfRangeException">
358 <paramref name="millisecondsTimeout" /> 是一个非 -1 的负数,而 -1 表示无限期超时。</exception>
359 <exception cref="T:System.InvalidOperationException">基础集合已在此 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例外部进行了修改。</exception>
361 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryTake(`0@,System.TimeSpan)">
362 <summary>尝试在指定的时间段内从 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 中移除某个项。</summary>
363 <returns>如果在指定的时间内可以从集合中移除某个项,则为 true;否则为 false。</returns>
364 <param name="item">要从集合中移除的项。</param>
365 <param name="timeout">表示等待的毫秒数的对象,或表示 -1 毫秒(无限期等待)的对象。 </param>
366 <exception cref="T:System.ObjectDisposedException">已释放了 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" />。</exception>
367 <exception cref="T:System.ArgumentOutOfRangeException">
368 <paramref name="timeout" /> 是一个非 -1 毫秒的负数,而 -1 表示无限期超时。- 或 - <paramref name="timeout" /> 大于 <see cref="F:System.Int32.MaxValue" />。</exception>
369 <exception cref="T:System.InvalidOperationException">基础集合已在此 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例外部进行了修改。</exception>
371 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryTakeFromAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0@)">
372 <summary>尝试从任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中移除某个项。</summary>
373 <returns>从中移除相应项的集合在 <paramref name="collections" /> 数组中的索引;如果未能移除某个项,则为 -1。</returns>
374 <param name="collections">集合的数组。</param>
375 <param name="item">从其中一个集合中移除的项。</param>
376 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
377 <exception cref="T:System.ArgumentNullException">
378 <paramref name="collections" /> 参数为 null。</exception>
379 <exception cref="T:System.ArgumentOutOfRangeException">
380 <paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
381 <exception cref="T:System.ArgumentException">
382 <paramref name="collections" /> 参数是一个 0 长度的数组,或包含 null 元素。</exception>
383 <exception cref="T:System.InvalidOperationException">至少一个基础集合已在其 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例之外进行了修改。</exception>
385 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryTakeFromAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0@,System.Int32)">
386 <summary>尝试从任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中移除某个项。</summary>
387 <returns>从中移除相应项的集合在 <paramref name="collections" /> 数组中的索引;如果未能移除某个项,则为 -1。</returns>
388 <param name="collections">集合的数组。</param>
389 <param name="item">从其中一个集合中移除的项。</param>
390 <param name="millisecondsTimeout">等待的毫秒数,或为 <see cref="F:System.Threading.Timeout.Infinite" /> (-1),表示无限期等待。</param>
391 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
392 <exception cref="T:System.ArgumentNullException">
393 <paramref name="collections" /> 参数为 null。</exception>
394 <exception cref="T:System.ArgumentOutOfRangeException">
395 <paramref name="millisecondsTimeout" /> 是一个非 -1 的负数,而 -1 表示无限期超时。- 或 -<paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
396 <exception cref="T:System.ArgumentException">
397 <paramref name="collections" /> 参数是一个 0 长度的数组,或包含 null 元素。</exception>
398 <exception cref="T:System.InvalidOperationException">至少一个基础集合已在其 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例之外进行了修改。</exception>
400 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryTakeFromAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0@,System.Int32,System.Threading.CancellationToken)">
401 <summary>尝试从任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中移除某个项。</summary>
402 <returns>从中移除相应项的集合在 <paramref name="collections" /> 数组中的索引;如果未能移除某个项,则为 -1。</returns>
403 <param name="collections">集合的数组。</param>
404 <param name="item">从其中一个集合中移除的项。</param>
405 <param name="millisecondsTimeout">等待的毫秒数,或为 <see cref="F:System.Threading.Timeout.Infinite" /> (-1),表示无限期等待。</param>
406 <param name="cancellationToken">要观察的取消标记。</param>
407 <exception cref="T:System.OperationCanceledException">如果 <see cref="T:System.Threading.CancellationToken" />已取消。</exception>
408 <exception cref="T:System.InvalidOperationException">至少一个基础集合已在其 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例之外进行了修改。</exception>
409 <exception cref="T:System.ArgumentNullException">
410 <paramref name="collections" /> 参数为 null。</exception>
411 <exception cref="T:System.ArgumentOutOfRangeException">
412 <paramref name="millisecondsTimeout" /> 是一个非 -1 的负数,而 -1 表示无限期超时。- 或 -<paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
413 <exception cref="T:System.ArgumentException">
414 <paramref name="collections" /> 参数是一个 0 长度的数组,或包含 null 元素。</exception>
415 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
417 <member name="M:System.Collections.Concurrent.BlockingCollection`1.TryTakeFromAny(System.Collections.Concurrent.BlockingCollection{`0}[],`0@,System.TimeSpan)">
418 <summary>尝试从任一指定的 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例中移除某个项。</summary>
419 <returns>从中移除相应项的集合在 <paramref name="collections" /> 数组中的索引;如果未能移除某个项,则为 -1。</returns>
420 <param name="collections">集合的数组。</param>
421 <param name="item">从其中一个集合中移除的项。</param>
422 <param name="timeout">表示等待的毫秒数的 <see cref="T:System.TimeSpan" />,或表示 -1 毫秒(无限期等待)的 <see cref="T:System.TimeSpan" />。</param>
423 <exception cref="T:System.ObjectDisposedException">至少其中一个 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例已释放。</exception>
424 <exception cref="T:System.ArgumentNullException">
425 <paramref name="collections" /> 参数为 null。</exception>
426 <exception cref="T:System.ArgumentOutOfRangeException">
427 <paramref name="timeout" /> 是 -1 毫秒之外的负数,表示无限超时或者超时大于 <see cref="F:System.Int32.MaxValue" />。- 或 -<paramref name="collections" /> 的计数大于最大的大小(STA 为 62,MTA 为 63)。</exception>
428 <exception cref="T:System.ArgumentException">
429 <paramref name="collections" /> 参数是一个 0 长度的数组,或包含 null 元素。</exception>
430 <exception cref="T:System.InvalidOperationException">至少一个基础集合已在其 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 实例之外进行了修改。</exception>
432 <member name="T:System.Collections.Concurrent.ConcurrentBag`1">
433 <summary>表示对象的线程安全的无序集合。</summary>
434 <typeparam name="T">要存储在集合中的元素的类型。</typeparam>
436 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.#ctor">
437 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 类的新实例。</summary>
439 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.#ctor(System.Collections.Generic.IEnumerable{`0})">
440 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 类的新实例,该类包含从指定集合中复制的元素。</summary>
441 <param name="collection">其元素被复制到新的 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 中的集合。</param>
442 <exception cref="T:System.ArgumentNullException">
443 <paramref name="collection" /> 为 null 引用(在 Visual Basic 中为 Nothing)。</exception>
445 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.Add(`0)">
446 <summary>将对象添加到 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 中。</summary>
447 <param name="item">要添加到 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 的对象。该值对于引用类型可以是空引用(在 Visual Basic 中为 Nothing)。</param>
449 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.CopyTo(`0[],System.Int32)">
450 <summary>从指定数组索引开始将 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 元素复制到现有一维 <see cref="T:System.Array" /> 中。</summary>
451 <param name="array">一维 <see cref="T:System.Array" />,它是从 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 所复制的元素的目标位置。<see cref="T:System.Array" /> 必须具有从零开始的索引。</param>
453 <paramref name="array" /> 中从零开始的索引,将在此处开始复制。</param>
454 <exception cref="T:System.ArgumentNullException">
455 <paramref name="array" /> 为 null 引用(在 Visual Basic 中为 Nothing)。</exception>
456 <exception cref="T:System.ArgumentOutOfRangeException">
457 <paramref name="index" /> 小于零。</exception>
458 <exception cref="T:System.ArgumentException">
459 <paramref name="index" /> 等于或大于 <paramref name="array" /> 的长度 - 或 - 源 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 中的元素数大于从 <paramref name="index" /> 到目标 <paramref name="array" /> 结尾的可用空间。</exception>
461 <member name="P:System.Collections.Concurrent.ConcurrentBag`1.Count">
462 <summary>获取 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 中包含的元素数。</summary>
464 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 中包含的元素数。</returns>
466 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.GetEnumerator">
467 <summary>返回一个循环访问 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 的枚举数。</summary>
468 <returns>可枚举 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 的内容的枚举器。</returns>
470 <member name="P:System.Collections.Concurrent.ConcurrentBag`1.IsEmpty">
471 <summary>获取一个指示 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 是否为空的值。</summary>
472 <returns>如果 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 为空,则为 true;否则为 false。</returns>
474 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.System#Collections#Concurrent#IProducerConsumerCollection{T}#TryAdd(`0)">
475 <summary>尝试将一个对象添加到 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 中。</summary>
476 <returns>始终返回 true</returns>
477 <param name="item">要添加到 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 的对象。该值对于引用类型可以是空引用(在 Visual Basic 中为 Nothing)。</param>
479 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.System#Collections#ICollection#CopyTo(System.Array,System.Int32)">
480 <summary>从特定的 <see cref="T:System.Array" /> 索引开始,将 <see cref="T:System.Collections.ICollection" /> 的元素复制到一个 <see cref="T:System.Array" /> 中。</summary>
481 <param name="array">一维 <see cref="T:System.Array" />,它是从 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 所复制的元素的目标位置。<see cref="T:System.Array" /> 必须具有从零开始的索引。</param>
483 <paramref name="array" /> 中从零开始的索引,将在此处开始复制。</param>
484 <exception cref="T:System.ArgumentNullException">
485 <paramref name="array" /> 为 null 引用(在 Visual Basic 中为 Nothing)。</exception>
486 <exception cref="T:System.ArgumentOutOfRangeException">
487 <paramref name="index" /> 小于零。</exception>
488 <exception cref="T:System.ArgumentException">
489 <paramref name="array" /> 是多维的。- 或 -<paramref name="array" /> 没有从零开始的索引。- 或 - <paramref name="index" /> 等于或大于 <paramref name="array" /> 的长度 - 或 - 源 <see cref="T:System.Collections.ICollection" /> 中的元素数大于从 <paramref name="index" /> 到目标 <paramref name="array" /> 结尾的可用空间。- 或 - 源 <see cref="T:System.Collections.ICollection" /> 的类型无法自动转换为目标 <paramref name="array" /> 的类型。</exception>
491 <member name="P:System.Collections.Concurrent.ConcurrentBag`1.System#Collections#ICollection#IsSynchronized">
492 <summary>获取一个值,该值指示对 <see cref="T:System.Collections.ICollection" /> 的访问是否与 SyncRoot 保持同步。</summary>
493 <returns>如果对 <see cref="T:System.Collections.ICollection" /> 的访问与 SyncRoot 保持同步,则为 true;否则为 false。对于 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" />,此属性始终返回 false。</returns>
495 <member name="P:System.Collections.Concurrent.ConcurrentBag`1.System#Collections#ICollection#SyncRoot">
496 <summary>获取一个可用于同步对 <see cref="T:System.Collections.ICollection" /> 的访问的对象。不支持此属性。</summary>
497 <returns>返回 null(在 Visual Basic 中为 Nothing)。</returns>
498 <exception cref="T:System.NotSupportedException">不支持 SyncRoot 属性。</exception>
500 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.System#Collections#IEnumerable#GetEnumerator">
501 <summary>返回一个循环访问 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 的枚举数。</summary>
502 <returns>可枚举 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 的内容的枚举器。</returns>
504 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.ToArray">
505 <summary>将 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 元素复制到新数组。</summary>
506 <returns>一个新数组,其中包含从 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 复制的元素的快照。</returns>
508 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.TryPeek(`0@)">
509 <summary>尝试从 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 返回一个对象但不移除该对象。</summary>
510 <returns>如果成功返回了对象,则为 true;否则为 false。</returns>
511 <param name="result">此方法返回时,<paramref name="result" /> 包含 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 中的对象;如果操作失败,则返回 <paramref name="T" /> 的默认值。</param>
513 <member name="M:System.Collections.Concurrent.ConcurrentBag`1.TryTake(`0@)">
514 <summary>尝试从 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 中移除并返回一个对象。</summary>
515 <returns>如果成功移除了对象,则为 true;否则为 false。</returns>
516 <param name="result">此方法返回时,<paramref name="result" /> 包含从 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 中移除的对象;如果包为空,则返回 <paramref name="T" /> 的默认值。</param>
518 <member name="T:System.Collections.Concurrent.ConcurrentDictionary`2">
519 <summary>表示可由多个线程同时访问的键/值对的线程安全集合。</summary>
520 <typeparam name="TKey">字典中的键的类型。</typeparam>
521 <typeparam name="TValue">字典中的值的类型。</typeparam>
523 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor">
524 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 类的新实例,该实例为空,具有默认的并发级别和默认的初始容量,并为键类型使用默认比较器。</summary>
526 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{`0,`1}})">
527 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 类的新实例,该实例包含从指定的 <see cref="T:System.Collections.Generic.IEnumerable`1" /> 中复制的元素,具有默认的并发级别和默认的初始容量,并为键类型使用默认比较器。</summary>
528 <param name="collection">
529 <see cref="T:System.Collections.Generic.IEnumerable`1" />,其元素被复制到新的 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中。</param>
530 <exception cref="T:System.ArgumentNullException">
531 <paramref name="collection" /> 或其中的任一键为 null。</exception>
532 <exception cref="T:System.ArgumentException">
533 <paramref name="collection" /> 包含一个或多个重复键。</exception>
535 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{`0,`1}},System.Collections.Generic.IEqualityComparer{`0})">
536 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 类的新实例,该实例包含从指定的 <see cref="T:System.Collections.IEnumerable" /> 中复制的元素,具有默认的并发级别和默认的初始容量,并使用指定的 <see cref="T:System.Collections.Generic.IEqualityComparer`1" />。</summary>
537 <param name="collection">
538 <see cref="T:System.Collections.Generic.IEnumerable`1" />,其元素被复制到新的 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中。</param>
539 <param name="comparer">在比较键时要使用的 <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> 实现。</param>
540 <exception cref="T:System.ArgumentNullException">
541 <paramref name="collection" /> 或 <paramref name="comparer" /> 为 null。</exception>
543 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Collections.Generic.IEqualityComparer{`0})">
544 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 类的新实例,该实例为空,具有默认的并发级别和容量,并使用指定的 <see cref="T:System.Collections.Generic.IEqualityComparer`1" />。</summary>
545 <param name="comparer">在对键进行比较时使用的相等比较实现。</param>
546 <exception cref="T:System.ArgumentNullException">
547 <paramref name="comparer" /> 为 null。</exception>
549 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Int32,System.Collections.Generic.IEnumerable{System.Collections.Generic.KeyValuePair{`0,`1}},System.Collections.Generic.IEqualityComparer{`0})">
550 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 类的新实例,该实例包含从指定的 <see cref="T:System.Collections.IEnumerable" /> 中复制的元素并使用指定的 <see cref="T:System.Collections.Generic.IEqualityComparer`1" />。</summary>
551 <param name="concurrencyLevel">将同时更新 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 的线程的估计数量。</param>
552 <param name="collection">
553 <see cref="T:System.Collections.Generic.IEnumerable`1" />,其元素被复制到新的 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中。</param>
554 <param name="comparer">在比较键时要使用的 <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> 实现。</param>
555 <exception cref="T:System.ArgumentNullException">
556 <paramref name="collection" /> 或 <paramref name="comparer" /> 为 null。</exception>
557 <exception cref="T:System.ArgumentOutOfRangeException">
558 <paramref name="concurrencyLevel" /> 小于 1。</exception>
559 <exception cref="T:System.ArgumentException">
560 <paramref name="collection" /> 包含一个或多个重复键。</exception>
562 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Int32,System.Int32)">
563 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 类的新实例,该实例为空,具有指定的并发级别和容量,并为键类型使用默认比较器。</summary>
564 <param name="concurrencyLevel">将同时更新 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 的线程的估计数量。</param>
565 <param name="capacity">
566 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 可包含的初始元素数。</param>
567 <exception cref="T:System.ArgumentOutOfRangeException">
568 <paramref name="concurrencyLevel" /> 小于 1。- 或 -<paramref name="capacity" /> 小于 0。</exception>
570 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.#ctor(System.Int32,System.Int32,System.Collections.Generic.IEqualityComparer{`0})">
571 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 类的新实例,该实例为空,具有指定的并发级别和指定的初始容量,并使用指定的 <see cref="T:System.Collections.Generic.IEqualityComparer`1" />。</summary>
572 <param name="concurrencyLevel">将同时更新 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 的线程的估计数量。</param>
573 <param name="capacity">
574 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 可包含的初始元素数。</param>
575 <param name="comparer">在比较键时要使用的 <see cref="T:System.Collections.Generic.IEqualityComparer`1" /> 实现。</param>
576 <exception cref="T:System.ArgumentNullException">
577 <paramref name="comparer" /> 为 null。</exception>
578 <exception cref="T:System.ArgumentOutOfRangeException">
579 <paramref name="concurrencyLevel" /> 或 <paramref name="capacity" /> 小于 1。</exception>
581 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(`0,System.Func{`0,`1},System.Func{`0,`1,`1})">
582 <summary>如果该键尚不存在,则使用指定函数将键/值对添加到 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" />;如果该键已存在,则使用该函数更新 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中的键/值对。</summary>
583 <returns>键的新值。这将是 addValueFactory 的结果(如果缺少键)或 updateValueFactory 的结果(如果存在键)。</returns>
584 <param name="key">要添加的键或应更新其值的键</param>
585 <param name="addValueFactory">用于为空缺键生成值的函数</param>
586 <param name="updateValueFactory">用于基于键的现有值为现有键生成新值的函数</param>
587 <exception cref="T:System.ArgumentNullException">
588 <paramref name="key" />、<paramref name="addValueFactory" /> 或 <paramref name="updateValueFactory" /> 为 null。</exception>
589 <exception cref="T:System.OverflowException">字典已包含最大数目的元素 (<see cref="F:System.Int32.MaxValue" />)。</exception>
591 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.AddOrUpdate(`0,`1,System.Func{`0,`1,`1})">
592 <summary>如果该键尚不存在,则将键/值对添加到 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" />;如果该键已存在,则使用指定函数更新 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中的键/值对。</summary>
593 <returns>键的新值。这将是 addValue(如果缺少键)或 updateValueFactory 的结果(如果存在键)。</returns>
594 <param name="key">要添加的键或应更新其值的键</param>
595 <param name="addValue">要为空缺键添加的值</param>
596 <param name="updateValueFactory">用于基于键的现有值为现有键生成新值的函数</param>
597 <exception cref="T:System.ArgumentNullException">
598 <paramref name="key" /> 或 <paramref name="updateValueFactory" /> 为 null。</exception>
599 <exception cref="T:System.OverflowException">字典已包含最大数目的元素 (<see cref="F:System.Int32.MaxValue" />)。</exception>
601 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.Clear">
602 <summary>从 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中移除所有的键和值。</summary>
604 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.ContainsKey(`0)">
605 <summary>确定 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 是否包含指定的键。</summary>
606 <returns>true if the <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> contains an element with the specified key; otherwise, false.</returns>
607 <param name="key">要在 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中定位的键。</param>
608 <exception cref="T:System.ArgumentNullException">
609 <paramref name="key" /> 为 null。</exception>
611 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.Count">
612 <summary>获取包含在 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中的键/值对的数目。</summary>
613 <returns>包含在 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中的键/值对的数目。</returns>
614 <exception cref="T:System.OverflowException">字典已包含最大数目的元素 (<see cref="F:System.Int32.MaxValue" />)。</exception>
616 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetEnumerator">
617 <summary>返回一个循环访问 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 的枚举数。</summary>
619 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 的一个枚举数。</returns>
621 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(`0,System.Func{`0,`1})">
622 <summary>如果该键尚不存在,则使用指定函数将键/值对添加到 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" />。</summary>
623 <returns>键的值。如果字典中已存在该键,则为该键的现有值;如果字典中不存在该键,则为由 valueFactory 返回的键的新值。</returns>
624 <param name="key">要添加的元素的键。</param>
625 <param name="valueFactory">用于为键生成值的函数</param>
626 <exception cref="T:System.ArgumentNullException">
627 <paramref name="key" /> 或 <paramref name="valueFactory" /> 为 null。</exception>
628 <exception cref="T:System.OverflowException">字典已包含最大数目的元素 (<see cref="F:System.Int32.MaxValue" />)。</exception>
630 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.GetOrAdd(`0,`1)">
631 <summary>如果指定的键尚不存在,则将键/值对添加到 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中。</summary>
632 <returns>键的值。如果字典中已存在该键,则为该键的现有值;如果字典中不存在该键,则为新值。</returns>
633 <param name="key">要添加的元素的键。</param>
634 <param name="value">当键不存在时要添加的值</param>
635 <exception cref="T:System.ArgumentNullException">
636 <paramref name="key" /> 为 null。</exception>
637 <exception cref="T:System.OverflowException">字典已包含最大数目的元素 (<see cref="F:System.Int32.MaxValue" />)。</exception>
639 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.IsEmpty">
640 <summary>获取一个指示 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 是否为空的值。</summary>
641 <returns>如果 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 为空,则为 true;否则为 false。</returns>
643 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.Item(`0)">
644 <summary>获取或设置与指定的键关联的值。</summary>
645 <returns>位于指定索引处的键/值对的值。</returns>
646 <param name="key">要获取或设置的值的键。</param>
647 <exception cref="T:System.ArgumentNullException">
648 <paramref name="key" /> 为 null。</exception>
649 <exception cref="T:System.Collections.Generic.KeyNotFoundException">已检索该属性,并且集合中不存在 <paramref name="key" />。</exception>
651 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.Keys">
652 <summary>获取包含 <see cref="T:System.Collections.Generic.Dictionary`2" /> 中的键的集合。</summary>
654 <see cref="T:System.Collections.Generic.Dictionary`2" /> 中的键的集合。</returns>
656 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{T}#Add(System.Collections.Generic.KeyValuePair{`0,`1})">
657 <summary>向集合中添加一项。</summary>
658 <param name="keyValuePair">要添加到字典中的 <see cref="T:System.Collections.Generic.KeyValuePair`2" />。</param>
660 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{T}#Contains(System.Collections.Generic.KeyValuePair{`0,`1})">
661 <summary>获取一个值,该值指示 <see cref="T:System.Collections.Generic.ICollection`1" /> 是否包含具有指定键的元素。</summary>
662 <returns>true if the <see cref="T:System.Collections.Generic.ICollection`1" /> contains an element with the specified key; otherwise, false.</returns>
663 <param name="keyValuePair">要在 <see cref="T:System.Collections.Generic.ICollection`1" /> 中定位的键。</param>
665 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{T}#CopyTo(System.Collections.Generic.KeyValuePair{`0,`1}[],System.Int32)">
666 <summary>从指定的数组索引开始,将 <see cref="T:System.Collections.ICollection" /> 中的元素复制到一个数组中。</summary>
667 <param name="array">一维数组,它是从 <see cref="T:System.Collections.ICollection" /> 中复制的元素的目标。该数组的索引必须从零开始。</param>
669 <paramref name="array" /> 中从零开始的索引,将在此处开始复制。</param>
671 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{T}#IsReadOnly">
672 <summary>获取一个值,该值指示 <see cref="T:System.Collections.ICollection" /> 是否为只读。</summary>
673 <returns>true if the <see cref="T:System.Collections.ICollection" /> is read-only; otherwise, false.</returns>
675 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#ICollection{T}#Remove(System.Collections.Generic.KeyValuePair{`0,`1})">
676 <summary>将指定的键/值对从集合中移除。</summary>
677 <returns>如果该元素已成功移除,则为 true;否则为 false。如果在原始 <see cref="T:System.Collections.Generic.ICollection`1" /> 中没有找到 <paramref name="key" />,此方法也会返回 false。</returns>
678 <param name="keyValuePair">要移除的 <see cref="T:System.Collections.Generic.KeyValuePair`2" />。</param>
680 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#IDictionary{TKey@TValue}#Add(`0,`1)">
681 <summary>向 <see cref="T:System.Collections.Generic.IDictionary`2" /> 中添加指定的键和值。</summary>
682 <param name="key">用作要添加的元素的键的对象。</param>
683 <param name="value">用作要添加的元素的值的对象。</param>
684 <exception cref="T:System.ArgumentNullException">
685 <paramref name="key" /> 为 null。</exception>
686 <exception cref="T:System.ArgumentException">
687 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中已存在具有相同键的元素。</exception>
688 <exception cref="T:System.OverflowException">字典已包含最大数目的元素 (<see cref="F:System.Int32.MaxValue" />)。</exception>
690 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#IDictionary{TKey@TValue}#Remove(`0)">
691 <summary>从 <see cref="T:System.Collections.Generic.IDictionary`2" /> 中移除包含指定键的元素。</summary>
692 <returns>如果该元素已成功移除,则为 true;否则为 false。This method also returns false if <paramref name="key" /> was not found in the original <see cref="T:System.Collections.Generic.IDictionary`2" />.</returns>
693 <param name="key">要移除的元素的键。</param>
694 <exception cref="T:System.ArgumentNullException">
695 <paramref name="key" /> 为 null。</exception>
697 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Keys">
698 <summary>获取包含 <see cref="T:System.Collections.Generic.Dictionary`2" /> 中的键的集合。</summary>
699 <returns>包含集合中的键<see cref="T:System.Collections.Generic.Dictionary`2" />。</returns>
701 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#Generic#IReadOnlyDictionary{TKey@TValue}#Values">
702 <summary>获取包含 <see cref="T:System.Collections.Generic.Dictionary`2" /> 中的值的集合。</summary>
703 <returns>包含 <see cref="T:System.Collections.Generic.Dictionary`2" /> 中的值的集合。</returns>
705 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#ICollection#CopyTo(System.Array,System.Int32)">
706 <summary>从指定的数组索引开始,将 <see cref="T:System.Collections.ICollection" /> 中的元素复制到一个数组中。</summary>
707 <param name="array">一维数组,它是从 <see cref="T:System.Collections.ICollection" /> 中复制的元素的目标。该数组的索引必须从零开始。</param>
709 <paramref name="array" /> 中从零开始的索引,将在此处开始复制。</param>
710 <exception cref="T:System.ArgumentNullException">
711 <paramref name="array" /> 为 null。</exception>
712 <exception cref="T:System.ArgumentOutOfRangeException">
713 <paramref name="index" /> 小于 0。</exception>
714 <exception cref="T:System.ArgumentException">
715 <paramref name="index" /> 等于或大于 <paramref name="array" /> 的长度。- 或 -源 <see cref="T:System.Collections.ICollection" /> 中的元素数目大于从 <paramref name="index" /> 到目标 <paramref name="array" /> 末尾之间的可用空间。</exception>
717 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#ICollection#IsSynchronized">
718 <summary>获取一个值,该值指示对 <see cref="T:System.Collections.ICollection" /> 的访问是否与 SyncRoot 保持同步。</summary>
719 <returns>true if access to the <see cref="T:System.Collections.ICollection" /> is synchronized (thread safe); otherwise, false.对于 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" />,此属性始终返回 false。</returns>
721 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#ICollection#SyncRoot">
722 <summary>获取一个可用于同步对 <see cref="T:System.Collections.ICollection" /> 的访问的对象。不支持此属性。</summary>
723 <returns>始终返回 null。</returns>
724 <exception cref="T:System.NotSupportedException">不支持此属性。</exception>
726 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Add(System.Object,System.Object)">
727 <summary>将指定的键和值添加到字典中。</summary>
728 <param name="key">要用作键的对象。</param>
729 <param name="value">要用作值的对象。</param>
730 <exception cref="T:System.ArgumentNullException">
731 <paramref name="key" /> 为 null。</exception>
732 <exception cref="T:System.ArgumentException">
733 <paramref name="key" /> 所属类型不可分配给 <see cref="T:System.Collections.Generic.Dictionary`2" /> 的键类型。- 或 - <paramref name="value" /> 属于不能分配给 <see cref="T:System.Collections.Generic.Dictionary`2" /> 中的值类型的类型。 - 或 -<see cref="T:System.Collections.Generic.Dictionary`2" /> 中已存在相同键的值。</exception>
734 <exception cref="T:System.OverflowException">字典已包含最大数目的元素 (<see cref="F:System.Int32.MaxValue" />)。</exception>
736 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Contains(System.Object)">
737 <summary>获取一个值,该值指示 <see cref="T:System.Collections.Generic.IDictionary`2" /> 是否包含具有指定键的元素。</summary>
738 <returns>true if the <see cref="T:System.Collections.Generic.IDictionary`2" /> contains an element with the specified key; otherwise, false.</returns>
739 <param name="key">要在 <see cref="T:System.Collections.Generic.IDictionary`2" /> 中定位的键。</param>
740 <exception cref="T:System.ArgumentNullException">
741 <paramref name="key" /> 为 null。</exception>
743 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#GetEnumerator">
744 <summary>为 <see cref="T:System.Collections.Generic.IDictionary`2" /> 提供 <see cref="T:System.Collections.IDictionaryEnumerator" />。</summary>
745 <returns>用于 <see cref="T:System.Collections.Generic.IDictionary`2" /> 的 <see cref="T:System.Collections.IDictionaryEnumerator" />。</returns>
747 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#IsFixedSize">
748 <summary>获取一个值,该值指示 <see cref="T:System.Collections.Generic.IDictionary`2" /> 是否具有固定大小。</summary>
749 <returns>true if the <see cref="T:System.Collections.Generic.IDictionary`2" /> has a fixed size; otherwise, false.对于 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" />,此属性始终返回 false。</returns>
751 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#IsReadOnly">
752 <summary>获取一个值,该值指示 <see cref="T:System.Collections.Generic.IDictionary`2" /> 是否为只读。</summary>
753 <returns>true if the <see cref="T:System.Collections.Generic.IDictionary`2" /> is read-only; otherwise, false.对于 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" />,此属性始终返回 false。</returns>
755 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Item(System.Object)">
756 <summary>获取或设置与指定的键关联的值。</summary>
757 <returns>与指定键关联的值;如果 <paramref name="key" /> 不在字典中或 <paramref name="key" /> 属于不能分配给 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 的键类型的类型,则为 null。</returns>
758 <param name="key">要获取或设置的值的键。</param>
759 <exception cref="T:System.ArgumentNullException">
760 <paramref name="key" /> 为 null。</exception>
761 <exception cref="T:System.ArgumentException">将分配一个值,并且 <paramref name="key" /> 属于不能分配给 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 的键类型或值类型的类型。</exception>
763 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Keys">
764 <summary>获取包含 <see cref="T:System.Collections.Generic.IDictionary`2" /> 的键的 <see cref="T:System.Collections.ICollection" />。</summary>
765 <returns>包含 <see cref="T:System.Collections.Generic.IDictionary`2" /> 的密钥的接口。</returns>
767 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Remove(System.Object)">
768 <summary>从 <see cref="T:System.Collections.IDictionary" /> 中移除包含指定键的元素。</summary>
769 <param name="key">要移除的元素的键。</param>
770 <exception cref="T:System.ArgumentNullException">
771 <paramref name="key" /> 为 null。</exception>
773 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IDictionary#Values">
774 <summary>获取包含 <see cref="T:System.Collections.IDictionary" /> 中的值的 <see cref="T:System.Collections.ICollection" />。</summary>
775 <returns>包含 <see cref="T:System.Collections.IDictionary" /> 中的值的接口。</returns>
777 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.System#Collections#IEnumerable#GetEnumerator">
778 <summary>返回一个循环访问 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 的枚举数。</summary>
780 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 的一个枚举数。</returns>
782 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.ToArray">
783 <summary>将 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中存储的键和值对复制到新数组中。</summary>
784 <returns>一个新数组,其中包含从 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 复制的键和值对的快照。</returns>
786 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryAdd(`0,`1)">
787 <summary>尝试将指定的键和值添加到 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中。</summary>
788 <returns>如果该键/值对已成功添加到 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" />,则为 true;如果该键已存在,则为 false。</returns>
789 <param name="key">要添加的元素的键。</param>
790 <param name="value">要添加的元素的值。对于引用类型,该值可以为 null。</param>
791 <exception cref="T:System.ArgumentNullException">
792 <paramref name="key" /> 为 null。</exception>
793 <exception cref="T:System.OverflowException">字典已包含最大数目的元素 (<see cref="F:System.Int32.MaxValue" />)。</exception>
795 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryGetValue(`0,`1@)">
796 <summary>尝试从 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 获取与指定的键关联的值。</summary>
797 <returns>如果在 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中找到该键,则为 true;否则为 false。</returns>
798 <param name="key">要获取的值的键。</param>
799 <param name="value">此方法返回时,包含该对象从<see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" />如果操作失败,具有指定的键或该类型的默认值。</param>
800 <exception cref="T:System.ArgumentNullException">
801 <paramref name="key" /> 为 null。</exception>
803 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryRemove(`0,`1@)">
804 <summary>尝试从 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中移除并返回具有指定键的值。</summary>
805 <returns>如果已成功移除对象,则为 true;否则为 false。</returns>
806 <param name="key">要移除并返回的元素的键。</param>
807 <param name="value">当此方法返回时,将包含从 <see cref="T:System.Collections.Concurrent.ConcurrentDictionary`2" /> 中移除的对象;如果 <paramref name="key" /> 不存在,则包含 TValue 类型。 </param>
808 <exception cref="T:System.ArgumentNullException">
809 <paramref name="key" /> 为 null。</exception>
811 <member name="M:System.Collections.Concurrent.ConcurrentDictionary`2.TryUpdate(`0,`1,`1)">
812 <summary>将指定键的现有值与指定值进行比较,如果相等,则用第三个值更新该键。</summary>
813 <returns>如果具有 <paramref name="key" /> 的值与 <paramref name="comparisonValue" /> 相等且替换为 <paramref name="newValue" />,则为 true;否则为 false。</returns>
814 <param name="key">其值将与 <paramref name="comparisonValue" /> 进行比较并且可能被替换的键。</param>
815 <param name="newValue">一个值,当比较结果相等时,将替换具有指定 <paramref name="key" /> 的元素的值。</param>
816 <param name="comparisonValue">与具有指定 <paramref name="key" /> 的元素的值进行比较的值。</param>
817 <exception cref="T:System.ArgumentNullException">
818 <paramref name="key" /> 为 null。</exception>
820 <member name="P:System.Collections.Concurrent.ConcurrentDictionary`2.Values">
821 <summary>获取包含 <see cref="T:System.Collections.Generic.Dictionary`2" /> 中的值的集合。</summary>
822 <returns>包含 <see cref="T:System.Collections.Generic.Dictionary`2" /> 中的值的集合。</returns>
824 <member name="T:System.Collections.Concurrent.ConcurrentQueue`1">
825 <summary>表示线程安全的先进先出 (FIFO) 集合。</summary>
826 <typeparam name="T">队列中包含的元素的类型。</typeparam>
828 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.#ctor">
829 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 类的新实例。</summary>
831 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.#ctor(System.Collections.Generic.IEnumerable{`0})">
832 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 类的新实例,该类包含从指定集合中复制的元素</summary>
833 <param name="collection">其元素被复制到新的 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 中的集合。</param>
834 <exception cref="T:System.ArgumentNullException">
835 <paramref name="collection" /> 参数为 null。</exception>
837 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.CopyTo(`0[],System.Int32)">
838 <summary>从指定数组索引开始将 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 元素复制到现有一维 <see cref="T:System.Array" /> 中。</summary>
839 <param name="array">一维 <see cref="T:System.Array" />,用作从 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 所复制的元素的目标数组。<see cref="T:System.Array" /> 必须具有从零开始的索引。</param>
841 <paramref name="array" /> 中从零开始的索引,从此索引处开始进行复制。</param>
842 <exception cref="T:System.ArgumentNullException">
843 <paramref name="array" /> 是 null 引用(在 Visual Basic 中为 Nothing)。</exception>
844 <exception cref="T:System.ArgumentOutOfRangeException">
845 <paramref name="index" /> 小于零。</exception>
846 <exception cref="T:System.ArgumentException">
847 <paramref name="index" /> 等于或大于 <paramref name="array" /> 的长度 - 或 - 源 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 中的元素数大于从 <paramref name="index" /> 到目标 <paramref name="array" /> 结尾的可用空间。</exception>
849 <member name="P:System.Collections.Concurrent.ConcurrentQueue`1.Count">
850 <summary>获取 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 中包含的元素数。</summary>
852 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 中包含的元素个数。</returns>
854 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.Enqueue(`0)">
855 <summary>将对象添加到 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 的结尾处。</summary>
856 <param name="item">要添加到 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 的结尾处的对象。该值对于引用类型可以是空引用(在 Visual Basic 中为 Nothing)。</param>
858 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.GetEnumerator">
859 <summary>返回循环访问 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 的枚举数。</summary>
860 <returns>可枚举 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 的内容的枚举器。</returns>
862 <member name="P:System.Collections.Concurrent.ConcurrentQueue`1.IsEmpty">
863 <summary>获取一个指示 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 是否为空的值。</summary>
864 <returns>如果 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 为空,则为 true;否则为 false。</returns>
866 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.System#Collections#Concurrent#IProducerConsumerCollection{T}#TryAdd(`0)">
867 <summary>尝试将一个对象添加到 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 中。</summary>
868 <returns>如果成功添加了对象,则为 true;否则为 false。</returns>
869 <param name="item">要添加到 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 的对象。该值对于引用类型可以是空引用(在 Visual Basic 中为 Nothing)。</param>
871 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.System#Collections#Concurrent#IProducerConsumerCollection{T}#TryTake(`0@)">
872 <summary>尝试从 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 中移除并返回一个对象。</summary>
873 <returns>如果成功移除并返回了元素,则为 true;否则为 false。</returns>
874 <param name="item">此方法返回时,如果操作成功,则 <paramref name="item" /> 包含所移除的对象。如果没有可供移除的对象,则不指定该值。</param>
876 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.System#Collections#ICollection#CopyTo(System.Array,System.Int32)">
877 <summary>从特定的 <see cref="T:System.Array" /> 索引处开始,将 <see cref="T:System.Collections.ICollection" /> 的元素复制到一个 <see cref="T:System.Array" /> 中。</summary>
878 <param name="array">一维 <see cref="T:System.Array" />,用作从 <see cref="T:System.Collections.Concurrent.ConcurrentBag`1" /> 所复制的元素的目标数组。<see cref="T:System.Array" /> 必须具有从零开始的索引。</param>
880 <paramref name="array" /> 中从零开始的索引,从此索引处开始进行复制。</param>
881 <exception cref="T:System.ArgumentNullException">
882 <paramref name="array" /> 是 null 引用(在 Visual Basic 中为 Nothing)。</exception>
883 <exception cref="T:System.ArgumentOutOfRangeException">
884 <paramref name="index" /> 小于零。</exception>
885 <exception cref="T:System.ArgumentException">
886 <paramref name="array" /> 是多维的。- 或 -<paramref name="array" /> 没有从零开始的索引。- 或 - <paramref name="index" /> 等于或大于 <paramref name="array" /> 的长度 - 或 - 源 <see cref="T:System.Collections.ICollection" /> 中的元素数大于从 <paramref name="index" /> 到目标 <paramref name="array" /> 结尾的可用空间。- 或 - 源 <see cref="T:System.Collections.ICollection" /> 的类型无法自动转换为目标 <paramref name="array" /> 的类型。</exception>
888 <member name="P:System.Collections.Concurrent.ConcurrentQueue`1.System#Collections#ICollection#IsSynchronized">
889 <summary>获取一个值,该值指示对 <see cref="T:System.Collections.ICollection" /> 的访问是否与 SyncRoot 保持同步。</summary>
890 <returns>如果对 <see cref="T:System.Collections.ICollection" /> 的访问与 SyncRoot 保持同步,则为 true;否则为 false。对于 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" />,此属性始终返回 false。</returns>
892 <member name="P:System.Collections.Concurrent.ConcurrentQueue`1.System#Collections#ICollection#SyncRoot">
893 <summary>获取可用于同步对 <see cref="T:System.Collections.ICollection" /> 的访问的对象。不支持此属性。</summary>
894 <returns>返回 null(在 Visual Basic 中为 Nothing)。</returns>
895 <exception cref="T:System.NotSupportedException">不支持 SyncRoot 属性。</exception>
897 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.System#Collections#IEnumerable#GetEnumerator">
898 <summary>返回一个循环访问集合的枚举器。</summary>
899 <returns>可用于循环访问集合的 <see cref="T:System.Collections.IEnumerator" />。</returns>
901 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.ToArray">
902 <summary>将 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 中存储的元素复制到新数组中。</summary>
903 <returns>一个新数组,其中包含从 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 复制的元素的快照。</returns>
905 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.TryDequeue(`0@)">
906 <summary>尝试移除并返回位于并发队列开头处的对象。</summary>
907 <returns>如果成功在 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 开头处移除并返回了元素,则为 true;否则为 false。</returns>
908 <param name="result">此方法返回时,如果操作成功,则 <paramref name="result" /> 包含所移除的对象。如果没有可供移除的对象,则不指定该值。</param>
910 <member name="M:System.Collections.Concurrent.ConcurrentQueue`1.TryPeek(`0@)">
911 <summary>尝试返回 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 开头处的对象但不将其移除。</summary>
912 <returns>如果成功返回了对象,则为 true;否则为 false。</returns>
913 <param name="result">此方法返回时,<paramref name="result" /> 包含 <see cref="T:System.Collections.Concurrent.ConcurrentQueue`1" /> 开始处的对象;如果操作失败,则包含未指定的值。</param>
915 <member name="T:System.Collections.Concurrent.ConcurrentStack`1">
916 <summary>表示线程安全的后进先出 (LIFO) 集合。</summary>
917 <typeparam name="T">堆栈中包含的元素的类型。</typeparam>
919 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.#ctor">
920 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 类的新实例。</summary>
922 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.#ctor(System.Collections.Generic.IEnumerable{`0})">
923 <summary>初始化 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 类的新实例,该实例包含从指定集合复制的元素</summary>
924 <param name="collection">其元素被复制到新的 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 中的集合。</param>
925 <exception cref="T:System.ArgumentNullException">The <paramref name="collection" /> argument is null.</exception>
927 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.Clear">
928 <summary>从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 中移除所有对象。</summary>
930 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.CopyTo(`0[],System.Int32)">
931 <summary>从指定数组索引开始将 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 元素复制到现有一维 <see cref="T:System.Array" /> 中。</summary>
932 <param name="array">一维 <see cref="T:System.Array" />,用作从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 所复制的元素的目标数组。<see cref="T:System.Array" /> 必须具有从零开始的索引。</param>
934 <paramref name="array" /> 中从零开始的索引,从此索引处开始进行复制。</param>
935 <exception cref="T:System.ArgumentNullException">
936 <paramref name="array" /> is a null reference (Nothing in Visual Basic).</exception>
937 <exception cref="T:System.ArgumentOutOfRangeException">
938 <paramref name="index" /> is less than zero.</exception>
939 <exception cref="T:System.ArgumentException">
940 <paramref name="index" /> is equal to or greater than the length of the <paramref name="array" /> -or- The number of elements in the source <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> is greater than the available space from <paramref name="index" /> to the end of the destination <paramref name="array" />.</exception>
942 <member name="P:System.Collections.Concurrent.ConcurrentStack`1.Count">
943 <summary>获取 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 中包含的元素数。</summary>
945 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 中包含的元素数。</returns>
947 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.GetEnumerator">
948 <summary>返回循环访问 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 的枚举数。</summary>
949 <returns>用于 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 的枚举数。</returns>
951 <member name="P:System.Collections.Concurrent.ConcurrentStack`1.IsEmpty">
952 <summary>获取一个值,该值指示 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 是否为空。</summary>
953 <returns>如果 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 为空,则为 true;否则为 false。</returns>
955 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.Push(`0)">
956 <summary>将对象插入 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 的顶部。</summary>
957 <param name="item">要推入到 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 中的对象。该值对于引用类型可以是空引用(在 Visual Basic 中为 Nothing)。</param>
959 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.PushRange(`0[])">
960 <summary>自动将多个对象插入 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 的顶部。</summary>
961 <param name="items">要推入到 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 中的对象。</param>
962 <exception cref="T:System.ArgumentNullException">
963 <paramref name="items" /> is a null reference (Nothing in Visual Basic).</exception>
965 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.PushRange(`0[],System.Int32,System.Int32)">
966 <summary>自动将多个对象插入 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 的顶部。</summary>
967 <param name="items">要推入到 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 中的对象。</param>
968 <param name="startIndex">
969 <paramref name="items" /> 中从零开始的偏移量,在此开始插入元素到 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 的顶部。</param>
970 <param name="count">要插入到 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 的顶部的元素数。</param>
971 <exception cref="T:System.ArgumentNullException">
972 <paramref name="items" /> is a null reference (Nothing in Visual Basic).</exception>
973 <exception cref="T:System.ArgumentOutOfRangeException">
974 <paramref name="startIndex" /> or <paramref name="count" /> is negative.Or <paramref name="startIndex" /> is greater than or equal to the length of <paramref name="items" />.</exception>
975 <exception cref="T:System.ArgumentException">
976 <paramref name="startIndex" /> + <paramref name="count" /> is greater than the length of <paramref name="items" />.</exception>
978 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.System#Collections#Concurrent#IProducerConsumerCollection{T}#TryAdd(`0)">
979 <summary>尝试将一个对象添加到 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 中。</summary>
980 <returns>如果成功添加了对象,则为 true;否则为 false。</returns>
981 <param name="item">要添加到 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 的对象。该值对于引用类型可以是空引用(在 Visual Basic 中为 Nothing)。</param>
983 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.System#Collections#Concurrent#IProducerConsumerCollection{T}#TryTake(`0@)">
984 <summary>尝试从 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 中移除和返回一个对象。</summary>
985 <returns>如果成功移除并返回了元素,则为 true;否则为 false。</returns>
986 <param name="item">此方法返回时,如果操作成功,则 <paramref name="item" /> 包含所移除的对象。如果没有可供移除的对象,则不指定该值。</param>
988 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.System#Collections#ICollection#CopyTo(System.Array,System.Int32)">
989 <summary>从特定的 <see cref="T:System.Array" /> 索引处开始,将 <see cref="T:System.Collections.ICollection" /> 的元素复制到一个 <see cref="T:System.Array" /> 中。</summary>
990 <param name="array">一维 <see cref="T:System.Array" />,用作从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 所复制的元素的目标数组。<see cref="T:System.Array" /> 必须具有从零开始的索引。</param>
992 <paramref name="array" /> 中从零开始的索引,从此索引处开始进行复制。</param>
993 <exception cref="T:System.ArgumentNullException">
994 <paramref name="array" /> is a null reference (Nothing in Visual Basic).</exception>
995 <exception cref="T:System.ArgumentOutOfRangeException">
996 <paramref name="index" /> is less than zero.</exception>
997 <exception cref="T:System.ArgumentException">
998 <paramref name="array" /> is multidimensional.-or- <paramref name="array" /> does not have zero-based indexing.-or- <paramref name="index" /> is equal to or greater than the length of the <paramref name="array" /> -or- The number of elements in the source <see cref="T:System.Collections.ICollection" /> is greater than the available space from <paramref name="index" /> to the end of the destination <paramref name="array" />.-or- The type of the source <see cref="T:System.Collections.ICollection" /> cannot be cast automatically to the type of the destination <paramref name="array" />.</exception>
1000 <member name="P:System.Collections.Concurrent.ConcurrentStack`1.System#Collections#ICollection#IsSynchronized">
1001 <summary>获取一个指示对 <see cref="T:System.Collections.ICollection" /> 的访问是否与 SyncRoot 同步的值。</summary>
1002 <returns>如果对 <see cref="T:System.Collections.ICollection" /> 的访问与 SyncRoot 同步,则为 true;否则为 false。对于 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" />,此属性始终返回 false。</returns>
1004 <member name="P:System.Collections.Concurrent.ConcurrentStack`1.System#Collections#ICollection#SyncRoot">
1005 <summary>获取可用于同步对 <see cref="T:System.Collections.ICollection" /> 的访问的对象。不支持此属性。</summary>
1006 <returns>返回 null(在 Visual Basic 中为 Nothing)。</returns>
1007 <exception cref="T:System.NotSupportedException">The SyncRoot property is not supported</exception>
1009 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.System#Collections#IEnumerable#GetEnumerator">
1010 <summary>返回循环访问集合的枚举数。</summary>
1011 <returns>可用于循环访问集合的 <see cref="T:System.Collections.IEnumerator" />。</returns>
1013 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.ToArray">
1014 <summary>将 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 中存储的项复制到一个新的数组。</summary>
1015 <returns>新数组包含从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 复制的元素的快照。</returns>
1017 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.TryPeek(`0@)">
1018 <summary>尝试从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 的顶部返回一个对象而无需移除它。</summary>
1019 <returns>如果成功返回了对象,则为 true;否则为 false。</returns>
1020 <param name="result">当此方法返回时,<paramref name="result" /> 包含来自 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 顶部的一个对象,或者如果操作失败,则包含未指定值。</param>
1022 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.TryPop(`0@)">
1023 <summary>尝试弹出并返回 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 顶部的对象。</summary>
1024 <returns>如果从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 的顶部成功移除并返回了元素,则为 true;否则为 false。</returns>
1025 <param name="result">此方法返回时,如果操作成功,则 <paramref name="result" /> 包含所移除的对象。如果没有可供移除的对象,则不指定该值。</param>
1027 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.TryPopRange(`0[])">
1028 <summary>尝试自动弹出并返回 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 顶部的多个对象。</summary>
1029 <returns>成功从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 顶部弹出并插入 <paramref name="items" /> 中的对象数。</returns>
1030 <param name="items">要将从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 顶部弹出的对象添加到的 <see cref="T:System.Array" />。</param>
1031 <exception cref="T:System.ArgumentNullException">
1032 <paramref name="items" /> is a null argument (Nothing in Visual Basic).</exception>
1034 <member name="M:System.Collections.Concurrent.ConcurrentStack`1.TryPopRange(`0[],System.Int32,System.Int32)">
1035 <summary>尝试自动弹出并返回 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 顶部的多个对象。</summary>
1036 <returns>成功从堆栈顶部弹出并插入 <paramref name="items" /> 中的对象数。</returns>
1037 <param name="items">要将从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 顶部弹出的对象添加到的 <see cref="T:System.Array" />。</param>
1038 <param name="startIndex">
1039 <paramref name="items" /> 中从零开始的偏移量,在此开始从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 顶部插入元素。</param>
1040 <param name="count">从 <see cref="T:System.Collections.Concurrent.ConcurrentStack`1" /> 顶部弹出并插入 <paramref name="items" /> 中的元素数。</param>
1041 <exception cref="T:System.ArgumentNullException">
1042 <paramref name="items" /> is a null reference (Nothing in Visual Basic).</exception>
1043 <exception cref="T:System.ArgumentOutOfRangeException">
1044 <paramref name="startIndex" /> or <paramref name="count" /> is negative.Or <paramref name="startIndex" /> is greater than or equal to the length of <paramref name="items" />.</exception>
1045 <exception cref="T:System.ArgumentException">
1046 <paramref name="startIndex" /> + <paramref name="count" /> is greater than the length of <paramref name="items" />.</exception>
1048 <member name="T:System.Collections.Concurrent.EnumerablePartitionerOptions">
1049 <summary>指定控制分区程序的缓冲行为的选项</summary>
1051 <member name="F:System.Collections.Concurrent.EnumerablePartitionerOptions.NoBuffering">
1052 <summary>创建分区程序,该程序从源可枚举项中一次提取项而不使用中间存储,多个线程可以更有效地访问该存储。此选项支持低延迟(一从源获得项目就对其进行处理)且部分支持项目间的依赖项(线程无法死锁等待线程自身负责处理的项目)。</summary>
1054 <member name="F:System.Collections.Concurrent.EnumerablePartitionerOptions.None">
1055 <summary>使用默认行为,就是使用缓冲实现最佳性能。</summary>
1057 <member name="T:System.Collections.Concurrent.IProducerConsumerCollection`1">
1058 <summary>定义供制造者/使用者用来操作线程安全集合的方法。此接口提供一个统一的表示(为生产者/消费者集合),从而更高级别抽象如 <see cref="T:System.Collections.Concurrent.BlockingCollection`1" /> 可以使用集合作为基础的存储机制。</summary>
1059 <typeparam name="T">指定集合中的元素的类型。</typeparam>
1061 <member name="M:System.Collections.Concurrent.IProducerConsumerCollection`1.CopyTo(`0[],System.Int32)">
1062 <summary>从指定的索引位置开始,将 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 的元素复制到 <see cref="T:System.Array" /> 中。</summary>
1063 <param name="array">一维 <see cref="T:System.Array" />,用作从 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 所复制的元素的目标数组。 该数组的索引必须从零开始。</param>
1064 <param name="index">
1065 <paramref name="array" /> 中从零开始的索引,从此索引处开始进行复制。</param>
1066 <exception cref="T:System.ArgumentNullException">
1067 <paramref name="array" /> 是 null 引用(在 Visual Basic 中为 Nothing)。</exception>
1068 <exception cref="T:System.ArgumentOutOfRangeException">
1069 <paramref name="index" /> 小于零。</exception>
1070 <exception cref="T:System.ArgumentException">
1071 <paramref name="index" /> 等于或大于 <paramref name="array" /> 的长度 - 或 - 集合中的元素数大于从 <paramref name="index" /> 到目标 <paramref name="array" /> 结尾的可用空间。</exception>
1073 <member name="M:System.Collections.Concurrent.IProducerConsumerCollection`1.ToArray">
1074 <summary>将 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 中包含的元素复制到新数组中。</summary>
1075 <returns>一个新数组,其中包含从 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 复制的元素。</returns>
1077 <member name="M:System.Collections.Concurrent.IProducerConsumerCollection`1.TryAdd(`0)">
1078 <summary>尝试将一个对象添加到 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 中。</summary>
1079 <returns>如果成功添加了对象,则为 true;否则为 false。</returns>
1080 <param name="item">要添加到 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 的对象。</param>
1081 <exception cref="T:System.ArgumentException">
1082 <paramref name="item" /> 对于此集合无效。</exception>
1084 <member name="M:System.Collections.Concurrent.IProducerConsumerCollection`1.TryTake(`0@)">
1085 <summary>尝试从 <see cref="T:System.Collections.Concurrent.IProducerConsumerCollection`1" /> 中移除并返回一个对象。</summary>
1086 <returns>如果成功移除并返回了对象,则为 true;否则为 false。</returns>
1087 <param name="item">此方法返回时,如果成功移除并返回了对象,则 <paramref name="item" /> 包含所移除的对象。如果没有可供移除的对象,则不指定该值。</param>
1089 <member name="T:System.Collections.Concurrent.OrderablePartitioner`1">
1090 <summary>表示将一个可排序数据源拆分成多个分区的特定方式。</summary>
1091 <typeparam name="TSource">集合中的元素的类型。</typeparam>
1093 <member name="M:System.Collections.Concurrent.OrderablePartitioner`1.#ctor(System.Boolean,System.Boolean,System.Boolean)">
1094 <summary>从派生类中的构造函数进行调用以便使用索引键上指定的约束初始化 <see cref="T:System.Collections.Concurrent.OrderablePartitioner`1" /> 类。</summary>
1095 <param name="keysOrderedInEachPartition">指示是否按键增加的顺序生成每个分区中的元素。</param>
1096 <param name="keysOrderedAcrossPartitions">指示前一分区中的元素是否始终排在后一分区中的元素之前。如果为 true,则分区 0 中的每个元素的顺序键比分区 1 中的任何元素都要小,分区 1 中的每个元素的顺序键比分区 2 中的任何元素都要小,依次类推。</param>
1097 <param name="keysNormalized">指示是否规范化键。如果为 true,所有顺序键均为范围 [0 .. numberOfElements-1] 中的不同整数。如果为 false,顺序键仍必须互不相同,但只考虑其相对顺序,而不考虑其绝对值。</param>
1099 <member name="M:System.Collections.Concurrent.OrderablePartitioner`1.GetDynamicPartitions">
1100 <summary>创建一个可将基础集合分区成可变数目的分区的对象。</summary>
1101 <returns>一个可针对基础数据源创建分区的对象。</returns>
1102 <exception cref="T:System.NotSupportedException">该基类不支持动态分区。它必须在派生类中实现。</exception>
1104 <member name="M:System.Collections.Concurrent.OrderablePartitioner`1.GetOrderableDynamicPartitions">
1105 <summary>创建一个可将基础集合分区成可变数目的分区的对象。</summary>
1106 <returns>一个可针对基础数据源创建分区的对象。</returns>
1107 <exception cref="T:System.NotSupportedException">此分区程序不支持动态分区。</exception>
1109 <member name="M:System.Collections.Concurrent.OrderablePartitioner`1.GetOrderablePartitions(System.Int32)">
1110 <summary>将基础集合分区成指定数目的可排序分区。</summary>
1111 <returns>一个包含 <paramref name="partitionCount" /> 枚举器的列表。</returns>
1112 <param name="partitionCount">要创建的分区数。</param>
1114 <member name="M:System.Collections.Concurrent.OrderablePartitioner`1.GetPartitions(System.Int32)">
1115 <summary>将基础集合分区成给定数目的可排序分区。</summary>
1116 <returns>一个包含 <paramref name="partitionCount" /> 枚举器的列表。</returns>
1117 <param name="partitionCount">要创建的分区数。</param>
1119 <member name="P:System.Collections.Concurrent.OrderablePartitioner`1.KeysNormalized">
1120 <summary>获取是否规范化顺序键。</summary>
1121 <returns>如果规范化键,则为 true;否则为 false。</returns>
1123 <member name="P:System.Collections.Concurrent.OrderablePartitioner`1.KeysOrderedAcrossPartitions">
1124 <summary>获取前一分区中的元素是否始终排在后一分区中的元素之前。</summary>
1125 <returns>如果前一分区中的元素始终排在后一分区中的元素之前,则为 true;否则为 false。</returns>
1127 <member name="P:System.Collections.Concurrent.OrderablePartitioner`1.KeysOrderedInEachPartition">
1128 <summary>获取是否按键增加的顺序生成每个分区中的元素。</summary>
1129 <returns>如果按键增加的顺序生成每个分区中的元素,则为 true;否则为 false。</returns>
1131 <member name="T:System.Collections.Concurrent.Partitioner">
1132 <summary>提供针对数组、列表和可枚举项的常见分区策略。</summary>
1134 <member name="M:System.Collections.Concurrent.Partitioner.Create``1(System.Collections.Generic.IEnumerable{``0})">
1135 <summary>从 <see cref="T:System.Collections.Generic.IEnumerable`1" /> 实例创建一个可排序分区程序。</summary>
1136 <returns>基于输入数组的可排序分区程序。</returns>
1137 <param name="source">要进行分区的可枚举项。</param>
1138 <typeparam name="TSource">源可枚举项中的元素的类型。</typeparam>
1140 <member name="M:System.Collections.Concurrent.Partitioner.Create``1(System.Collections.Generic.IEnumerable{``0},System.Collections.Concurrent.EnumerablePartitionerOptions)">
1141 <summary>从 <see cref="T:System.Collections.Generic.IEnumerable`1" /> 实例创建一个可排序分区程序。</summary>
1142 <returns>基于输入数组的可排序分区程序。</returns>
1143 <param name="source">要进行分区的可枚举项。</param>
1144 <param name="partitionerOptions">控制分区缓冲行为的选项。</param>
1145 <typeparam name="TSource">源可枚举项中的元素的类型。</typeparam>
1146 <exception cref="T:System.ArgumentOutOfRangeException">
1147 <paramref name="partitionerOptions" /> 参数为 <see cref="T:System.Collections.Concurrent.EnumerablePartitionerOptions" /> 指定无效值。</exception>
1149 <member name="M:System.Collections.Concurrent.Partitioner.Create``1(System.Collections.Generic.IList{``0},System.Boolean)">
1150 <summary>从 <see cref="T:System.Collections.Generic.IList`1" /> 实例创建一个可排序分区程序。</summary>
1151 <returns>基于输入列表的可排序分区程序。</returns>
1152 <param name="list">要进行分区的列表。</param>
1153 <param name="loadBalance">一个布尔值,该值指示创建的分区程序是否应在各分区之间保持动态负载平衡,而不是静态负载平衡。</param>
1154 <typeparam name="TSource">源列表中的元素的类型。</typeparam>
1156 <member name="M:System.Collections.Concurrent.Partitioner.Create(System.Int32,System.Int32)">
1157 <summary>创建一个按用户指定的范围划分区块的分区程序。</summary>
1158 <returns>一个分区程序。</returns>
1159 <param name="fromInclusive">范围下限(含)。</param>
1160 <param name="toExclusive">范围上限(不含)。</param>
1161 <exception cref="T:System.ArgumentOutOfRangeException">
1162 <paramref name="toExclusive" /> 参数小于或等于 <paramref name="fromInclusive" /> 参数。</exception>
1164 <member name="M:System.Collections.Concurrent.Partitioner.Create(System.Int32,System.Int32,System.Int32)">
1165 <summary>创建一个按用户指定的范围划分区块的分区程序。</summary>
1166 <returns>一个分区程序。</returns>
1167 <param name="fromInclusive">范围下限(含)。</param>
1168 <param name="toExclusive">范围上限(不含)。</param>
1169 <param name="rangeSize">每个子范围的大小。</param>
1170 <exception cref="T:System.ArgumentOutOfRangeException">
1171 <paramref name="toExclusive" /> 参数小于或等于 <paramref name="fromInclusive" /> 参数。- 或 -<paramref name="rangeSize" /> 参数小于或等于 0。</exception>
1173 <member name="M:System.Collections.Concurrent.Partitioner.Create(System.Int64,System.Int64)">
1174 <summary>创建一个按用户指定的范围划分区块的分区程序。</summary>
1175 <returns>一个分区程序。</returns>
1176 <param name="fromInclusive">范围下限(含)。</param>
1177 <param name="toExclusive">范围上限(不含)。</param>
1178 <exception cref="T:System.ArgumentOutOfRangeException">
1179 <paramref name="toExclusive" /> 参数小于或等于 <paramref name="fromInclusive" /> 参数。</exception>
1181 <member name="M:System.Collections.Concurrent.Partitioner.Create(System.Int64,System.Int64,System.Int64)">
1182 <summary>创建一个按用户指定的范围划分区块的分区程序。</summary>
1183 <returns>一个分区程序。</returns>
1184 <param name="fromInclusive">范围下限(含)。</param>
1185 <param name="toExclusive">范围上限(不含)。</param>
1186 <param name="rangeSize">每个子范围的大小。</param>
1187 <exception cref="T:System.ArgumentOutOfRangeException">
1188 <paramref name="toExclusive" /> 参数小于或等于 <paramref name="fromInclusive" /> 参数。- 或 -<paramref name="rangeSize" /> 参数小于或等于 0。</exception>
1190 <member name="M:System.Collections.Concurrent.Partitioner.Create``1(``0[],System.Boolean)">
1191 <summary>从 <see cref="T:System.Array" /> 实例创建一个可排序分区程序。</summary>
1192 <returns>基于输入数组的可排序分区程序。</returns>
1193 <param name="array">要进行分区的数组。</param>
1194 <param name="loadBalance">一个布尔值,该值指示创建的分区程序是否应在各分区之间保持动态负载平衡,而不是静态负载平衡。</param>
1195 <typeparam name="TSource">源数组中的元素的类型。</typeparam>
1197 <member name="T:System.Collections.Concurrent.Partitioner`1">
1198 <summary>表示将一个数据源拆分成多个分区的特定方式。</summary>
1199 <typeparam name="TSource">集合中的元素的类型。</typeparam>
1201 <member name="M:System.Collections.Concurrent.Partitioner`1.#ctor">
1202 <summary>创建新的分区程序实例。</summary>
1204 <member name="M:System.Collections.Concurrent.Partitioner`1.GetDynamicPartitions">
1205 <summary>创建一个可将基础集合分区成可变数目的分区的对象。</summary>
1206 <returns>一个可针对基础数据源创建分区的对象。</returns>
1207 <exception cref="T:System.NotSupportedException">该基类不支持动态分区。必须在派生类中实现它。</exception>
1209 <member name="M:System.Collections.Concurrent.Partitioner`1.GetPartitions(System.Int32)">
1210 <summary>将基础集合分区成给定数目的分区。</summary>
1211 <returns>一个包含 <paramref name="partitionCount" /> 枚举器的列表。</returns>
1212 <param name="partitionCount">要创建的分区数。</param>
1214 <member name="P:System.Collections.Concurrent.Partitioner`1.SupportsDynamicPartitions">
1215 <summary>获取是否可以动态创建附加分区。</summary>
1216 <returns>如果 <see cref="T:System.Collections.Concurrent.Partitioner`1" /> 可以根据分区请求动态创建分区,则为 true;如果 <see cref="T:System.Collections.Concurrent.Partitioner`1" /> 只能以静态方式分配分区,则为 false。</returns>