DataRelationCollection 成员

表示此 DataSetDataRelation 对象的集合。

下表列出了由 DataRelationCollection 类型公开的成员。

受保护的构造函数

  名称 说明
Protected method Supported by the .NET Compact Framework DataRelationCollection 初始化 DataRelationCollection 类的新实例。

页首

公共属性

(请参见 受保护的属性 )

  名称 说明
Public property Supported by the .NET Compact Framework Count  获取集合中的元素的总数。(从 InternalDataCollectionBase 继承。)
Public property Supported by the .NET Compact Framework IsReadOnly  获取一个值,该值指示 InternalDataCollectionBase 是否为只读。(从 InternalDataCollectionBase 继承。)
Public property Supported by the .NET Compact Framework IsSynchronized  获取一个值,该值指示 InternalDataCollectionBase 是否是同步的。(从 InternalDataCollectionBase 继承。)
Public property Supported by the .NET Compact Framework Item 已重载。从集合中获取指定的 DataRelation
Public property Supported by the .NET Compact Framework SyncRoot  获取可用于同步集合的对象。(从 InternalDataCollectionBase 继承。)

页首

受保护的属性

  名称 说明
Protected property Supported by the .NET Compact Framework List  作为列表获取集合的项。(从 InternalDataCollectionBase 继承。)

页首

公共方法

(请参见 受保护的方法 )

  名称 说明
Public method Supported by the .NET Compact Framework Add 已重载。 向 DataRelationCollection 添加 DataRelation
Public method Supported by the .NET Compact Framework AddRange 将指定的 DataRelation 数组的元素复制到集合末尾。
Public method Supported by the .NET Compact Framework CanRemove 验证是否可以将指定的 DataRelation 从集合中移除。
Public method Supported by the .NET Compact Framework Clear 清除集合的所有关系。
Public method Supported by the .NET Compact Framework Contains 验证集合中是否存在具有特定名称(不区分大小写)的 DataRelation
Public method Supported by the .NET Compact Framework CopyTo 已重载。 复制 DataRelation 对象的集合。
Public method Supported by the .NET Compact Framework Equals  已重载。 确定两个 Object 实例是否相等。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetEnumerator  获取集合的 IEnumerator。 (从 InternalDataCollectionBase 继承。)
Public method Supported by the .NET Compact Framework GetHashCode  用作特定类型的哈希函数。GetHashCode 适合在哈希算法和数据结构(如哈希表)中使用。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework GetType  获取当前实例的 Type。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework IndexOf 已重载。 获取指定数据关系的索引。
Public method Static Supported by the .NET Compact Framework ReferenceEquals  确定指定的 Object 实例是否是相同的实例。 (从 Object 继承。)
Public method Supported by the .NET Compact Framework Remove 已重载。 从集合中移除指定的关系。
Public method Supported by the .NET Compact Framework RemoveAt 从集合中移除指定索引位置的关系。
Public method Supported by the .NET Compact Framework ToString  返回表示当前 ObjectString。 (从 Object 继承。)

页首

受保护的方法

  名称 说明
Protected method Supported by the .NET Compact Framework AddCore 对表执行验证。
Protected method Supported by the .NET Compact Framework Finalize  允许 Object 在“垃圾回收”回收 Object 之前尝试释放资源并执行其他清理操作。 (从 Object 继承。)
Protected method Supported by the .NET Compact Framework GetDataSet 此方法支持 .NET Framework 基础结构,不应通过代码直接使用。
Protected method Supported by the .NET Compact Framework MemberwiseClone  创建当前 Object 的浅表副本。 (从 Object 继承。)
Protected method Supported by the .NET Compact Framework OnCollectionChanged 引发 CollectionChanged 事件。
Protected method Supported by the .NET Compact Framework OnCollectionChanging 引发 CollectionChanged 事件。
Protected method Supported by the .NET Compact Framework RemoveCore 对指定 DataRelation 对象执行验证。

页首

公共事件

  名称 说明
Public event Supported by the .NET Compact Framework CollectionChanged 在集合更改后发生。

页首

请参见

参考

DataRelationCollection 类
System.Data 命名空间

其他资源

添加表间关系
浏览表间关系