DataRelationCollection::AddCore Method (DataRelation^)

 

Performs verification on the table.

Namespace:   System.Data
Assembly:  System.Data (in System.Data.dll)

protected:
virtual void AddCore(
	DataRelation^ relation
)

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
Return to top
Show: