Dela via


SyncSchemaForeignKeys.Item Property (String)

Gets a SyncSchemaForeignKey object from the collection when given a foreign key constraint name.

Namespace:  Microsoft.Synchronization.Data
Assembly:  Microsoft.Synchronization.Data (in Microsoft.Synchronization.Data.dll)

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    foreignKeyName As String _
) As SyncSchemaForeignKey
    Get
'Usage
Dim instance As SyncSchemaForeignKeys
Dim foreignKeyName As String
Dim value As SyncSchemaForeignKey

value = instance(foreignKeyName)
public SyncSchemaForeignKey this[
    string foreignKeyName
] { get; }
public:
property SyncSchemaForeignKey^ default[String^ foreignKeyName] {
    SyncSchemaForeignKey^ get (String^ foreignKeyName);
}
member Item : SyncSchemaForeignKey
JScript supports the use of indexed properties, but not the declaration of new ones.

Parameters

Property Value

Type: Microsoft.Synchronization.Data.SyncSchemaForeignKey
The SyncSchemaForeignKey object in the collection with the specified name; otherwise a null value if the foreign key constraint name does not exist.

Exceptions

Exception Condition
ArgumentNullException

foreignKeyName is a null reference (Nothing in Visual Basic).

See Also

Reference

SyncSchemaForeignKeys Class

Item Overload

Microsoft.Synchronization.Data Namespace