DataRelationCollection.AddCore Method (DataRelation)

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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: