DataRelationCollection::AddCore Method (DataRelation^)
.NET Framework (current version)
Performs verification on the table.
Assembly: System.Data (in System.Data.dll)
Parameters
- relation
-
Type:
System.Data::DataRelation^
The relation to check.
| Exception | 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 same name. (The comparison is not case sensitive.) |
.NET Framework
Available since 1.1
Available since 1.1
Show: