BuildAdapter-Methode
Erstellt ein DbSyncAdapter-Objekt, das eine Tabelle in einer SQL Server-Datenbank darstellt, und gibt es zurück.
Namespace: Microsoft.Synchronization.Data.SqlServer
Assembly: Microsoft.Synchronization.Data.SqlServer (in Microsoft.Synchronization.Data.SqlServer.dll)
Syntax
'Declaration
Public Function BuildAdapter ( _
connection As SqlConnection _
) As DbSyncAdapter
'Usage
Dim instance As SqlSyncProviderAdapterConfiguration
Dim connection As SqlConnection
Dim returnValue As DbSyncAdapter
returnValue = instance.BuildAdapter(connection)
public DbSyncAdapter BuildAdapter(
SqlConnection connection
)
public:
DbSyncAdapter^ BuildAdapter(
SqlConnection^ connection
)
member BuildAdapter :
connection:SqlConnection -> DbSyncAdapter
public function BuildAdapter(
connection : SqlConnection
) : DbSyncAdapter
Parameter
- connection
Typ: System.Data.SqlClient. . :: . .SqlConnection
Eine Verbindung zur Datenbank.
Rückgabewert
Typ: Microsoft.Synchronization.Data. . :: . .DbSyncAdapter
Ein DbSyncAdapter-Objekt, das eine Tabelle in einer SQL Server-Datenbank darstellt.
Ausnahmen
Ausnahme | Bedingung |
---|---|
ArgumentNullException | connection ist NULL. |
Siehe auch
Verweis
SqlSyncProviderAdapterConfiguration Klasse