DbSyncForeignKeyConstraintCollection.Item Property (String)
Gets a DbSyncForeignKeyConstraint object with the specified name from the collection.
Namespace: Microsoft.Synchronization.Data
Assembly: Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)
Syntax
'Declaration
Public ReadOnly Default Property Item ( _
constraintName As String _
) As DbSyncForeignKeyConstraint
Get
'Usage
Dim instance As DbSyncForeignKeyConstraintCollection
Dim constraintName As String
Dim value As DbSyncForeignKeyConstraint
value = instance(constraintName)
public DbSyncForeignKeyConstraint this[
string constraintName
] { get; }
public:
property DbSyncForeignKeyConstraint^ default[String^ constraintName] {
DbSyncForeignKeyConstraint^ get (String^ constraintName);
}
member Item : DbSyncForeignKeyConstraint
JScript supports the use of indexed properties, but not the declaration of new ones.
Parameters
- constraintName
Type: System.String
The name of the constraint to add to the collection.
Property Value
Type: Microsoft.Synchronization.Data.DbSyncForeignKeyConstraint
A DbSyncForeignKeyConstraint object.
Exceptions
Exception | Condition |
---|---|
ArgumentNullException | constraintName is a null reference (Nothing in Visual Basic). |
ArgumentException | constraintName is empty. |