Share via


DbSyncAdapterCollection.Item Property (String)

Gets a DbSyncAdapter object from the collection when given a table name.

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

Syntax

'Declaration
Public ReadOnly Default Property Item ( _
    tableName As String _
) As DbSyncAdapter
    Get
'Usage
Dim instance As DbSyncAdapterCollection
Dim tableName As String
Dim value As DbSyncAdapter

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

Parameters

Property Value

Type: Microsoft.Synchronization.Data.DbSyncAdapter
A DbSyncAdapter object for the specified table.

Exceptions

Exception Condition
ArgumentNullExcpeption

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

ArgumentException

This DbSyncAdapterCollection object did not contain a table with name tableName.

See Also

Reference

DbSyncAdapterCollection Class

Item Overload

Microsoft.Synchronization.Data Namespace