DbSyncForeignKeyConstraintCollection::Item Property (String)
Gets a DbSyncForeignKeyConstraint object with the specified name from the collection.
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
public: property DbSyncForeignKeyConstraint^ default[String^ constraintName] { DbSyncForeignKeyConstraint^ get (String^ constraintName); }
Parameters
- constraintName
- Type: System::String
The name of the constraint to add to the collection.
Property Value
Type: Microsoft.Synchronization.Data::DbSyncForeignKeyConstraintA DbSyncForeignKeyConstraint object.
| Exception | Condition |
|---|---|
| ArgumentNullException | constraintName is a nullptr. |
| ArgumentException | constraintName is empty. |
Show: