Export (0) Print
Expand All

DataRelationCollection.AddCore Method

Performs verification on the table.

[Visual Basic]
Protected Overridable Sub AddCore( _
   ByVal relation As DataRelation _
)
[C#]
protected virtual void AddCore(
 DataRelation relation
);
[C++]
protected: virtual void AddCore(
 DataRelation* relation
);
[JScript]
protected function AddCore(
   relation : DataRelation
);

Parameters

relation
The relation to check.

Exceptions

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.)

Requirements

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

Show:
© 2014 Microsoft