Freigeben über


GetDescriptionForTable-Methode (String, Collection(String), SqlConnection)

Gibt ein DbSyncTableDescription-Objekt zurück, das Schemainformationen über die angegebene Tabelle in einer SQL Server-Datenbank enthält.

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

Syntax

'Declaration
Public Shared Function GetDescriptionForTable ( _
    tableName As String, _
    columnNames As Collection(Of String), _
    connection As SqlConnection _
) As DbSyncTableDescription
'Usage
Dim tableName As String
Dim columnNames As Collection(Of String)
Dim connection As SqlConnection
Dim returnValue As DbSyncTableDescription

returnValue = SqlSyncDescriptionBuilder.GetDescriptionForTable(tableName, _
    columnNames, connection)
public static DbSyncTableDescription GetDescriptionForTable(
    string tableName,
    Collection<string> columnNames,
    SqlConnection connection
)
public:
static DbSyncTableDescription^ GetDescriptionForTable(
    String^ tableName, 
    Collection<String^>^ columnNames, 
    SqlConnection^ connection
)
static member GetDescriptionForTable : 
        tableName:string * 
        columnNames:Collection<string> * 
        connection:SqlConnection -> DbSyncTableDescription 
public static function GetDescriptionForTable(
    tableName : String, 
    columnNames : Collection<String>, 
    connection : SqlConnection
) : DbSyncTableDescription

Parameter

  • tableName
    Typ: System. . :: . .String
    Der Name der Tabelle, für die eine Beschreibung abgerufen werden soll.

Rückgabewert

Typ: Microsoft.Synchronization.Data. . :: . .DbSyncTableDescription
Ein DbSyncTableDescription-Objekt, das Schemainformationen über die angegebene Tabelle enthält.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

connection ist NULL.

ArgumentException

tableName ist NULL oder leer.

Siehe auch

Verweis

SqlSyncDescriptionBuilder Klasse

SqlSyncDescriptionBuilder-Member

GetDescriptionForTable-Überladung

Microsoft.Synchronization.Data.SqlServer-Namespace