This documentation is archived and is not being maintained.

DataRelationCollection.AddCore Method

Performs verification on the table.

[Visual Basic]
Protected Overridable Sub AddCore( _
   ByVal relation As DataRelation _
protected virtual void AddCore(
 DataRelation relation
protected: virtual void AddCore(
 DataRelation* relation
protected function AddCore(
   relation : DataRelation


The relation to check.


Exception Type Condition
ArgumentNullException The relation is null.
ArgumentException The relation already belongs to this collection, or it belongs to another collection.
DuplicateNameException The collection already has a relation with the specified name. (The comparison is not case sensitive.)


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, .NET Compact Framework

See Also

DataRelationCollection Class | DataRelationCollection Members | System.Data Namespace