此 API 支持 .NET Framework 基础结构,不适合在代码中直接使用。
表示与某个对象同步的类型 TListType 的列表。
继承层次结构
Object
Collection<TListType>
Microsoft.Reporting.WebForms.SyncList<TListType>
Microsoft.Reporting.WebForms.ReportDataSourceCollection
Microsoft.Reporting.WebForms.ReportViewerCookieCollection
Microsoft.Reporting.WebForms.ReportViewerHeaderCollection
命名空间: Microsoft.Reporting.WebForms
程序集: Microsoft.ReportViewer.WebForms(在 Microsoft.ReportViewer.WebForms.dll 中)
语法
声明
<SerializableAttribute> _
Public Class SyncList(Of TListType) _
Inherits Collection(Of TListType)
[SerializableAttribute]
public class SyncList<TListType> : Collection<TListType>
[SerializableAttribute]
generic<typename TListType>
public ref class SyncList : public Collection<TListType>
[<SerializableAttribute>]
type SyncList<'TListType> =
class
inherit Collection<'TListType>
end
JScript 不支持泛型类型或方法。
类型参数
- TListType
列表中元素的类型。
SyncList<TListType> 类型公开以下成员。
属性
名称 | 说明 | |
---|---|---|
![]() |
Count | 获取 Collection 中实际包含的元素数。 (继承自 Collection<TListType>。) |
![]() |
Item | 获取或设置位于指定索引处的元素。 (继承自 Collection<TListType>。) |
![]() |
Items | 获取 Collection 周围的 IList 包装。 (继承自 Collection<TListType>。) |
页首
方法
名称 | 说明 | |
---|---|---|
![]() |
Add | 将对象添加到 Collection 的结尾处。 (继承自 Collection<TListType>。) |
![]() |
Clear | 从 Collection 中移除所有元素。 (继承自 Collection<TListType>。) |
![]() |
ClearItems | 基础结构。 从列表中移除所有项。 (重写 Collection.ClearItems()。) |
![]() |
Contains | 确定某元素是否在 Collection 中。 (继承自 Collection<TListType>。) |
![]() |
CopyTo | 从目标数组的指定索引处开始将整个 Collection 复制到兼容的一维 Array。 (继承自 Collection<TListType>。) |
![]() |
Equals | 确定指定的对象是否等于当前对象。 (继承自 Object。) |
![]() |
Finalize | 在垃圾回收将某一对象回收前允许该对象尝试释放资源并执行其他清理操作。 (继承自 Object。) |
![]() |
GetEnumerator | 返回循环访问 Collection 的枚举数。 (继承自 Collection<TListType>。) |
![]() |
GetHashCode | 作为默认哈希函数。 (继承自 Object。) |
![]() |
GetType | 获取当前实例的 Type。 (继承自 Object。) |
![]() |
IndexOf | 搜索指定的对象,并返回整个 Collection 中第一个匹配项的从零开始的索引。 (继承自 Collection<TListType>。) |
![]() |
Insert | 将元素插入 Collection 的指定索引处。 (继承自 Collection<TListType>。) |
![]() |
InsertItem | 基础结构。 在列表中的指定索引处插入该元素。 (重写 Collection.InsertItem(Int32, UTP)。) |
![]() |
MemberwiseClone | 创建当前 Object 的浅表副本。 (继承自 Object。) |
![]() |
Remove | 从 Collection 中移除特定对象的第一个匹配项。 (继承自 Collection<TListType>。) |
![]() |
RemoveAt | 移除 Collection 的指定索引处的元素。 (继承自 Collection<TListType>。) |
![]() |
RemoveItem | 基础结构。 移除指定索引处的元素。 (重写 Collection.RemoveItem(Int32)。) |
![]() |
SetItem | 基础结构。 替换指定索引处的元素。 (重写 Collection.SetItem(Int32, UTP)。) |
![]() |
ToString | 返回表示当前对象的字符串。 (继承自 Object。) |
页首
显式接口实现
名称 | 说明 | |
---|---|---|
![]() ![]() |
System#Collections#IList#Add | 将某项添加到 IList 中。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#IList#Contains | 确定 IList 是否包含特定值。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#ICollection#CopyTo | 从特定的 Array 索引处开始,将 ICollection 的元素复制到一个 Array 中。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#IEnumerable#GetEnumerator | 返回一个循环访问集合的枚举器。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#IList#IndexOf | 确定 IList 中特定项的索引。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#IList#Insert | 将某项插入 IList 中指定的索引处。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#IList#IsFixedSize | 获取一个值,该值指示 IList 是否具有固定大小。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#Generic#ICollection{T}#IsReadOnly | 获取一个值,该值指示 ICollection 是否为只读。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#IList#IsReadOnly | 获取一个值,该值指示 IList 是否为只读。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#ICollection#IsSynchronized | 获取一个值,该值指示是否同步对 ICollection 的访问(线程安全)。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#IList#Item | 获取或设置位于指定索引处的元素。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#IList#Remove | 从 IList 中移除特定对象的第一个匹配项。 (继承自 Collection<TListType>。) |
![]() ![]() |
System#Collections#ICollection#SyncRoot | 获取可用于同步对 ICollection 的访问的对象。 (继承自 Collection<TListType>。) |
页首
线程安全
此类型的任何公共 static(在 Visual Basic 中为 Shared) 成员都是线程安全的。但不保证所有实例成员都是线程安全的。