Freigeben über


GetDescriptionForScope-Methode (String, String, SqlConnection)

Gibt ein DbSyncScopeDescription-Objekt zurück, das Informationen zum angegebenen Bereich enthält, der für eine SQL Server-Datenbank definiert wird.

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

Syntax

'Declaration
Public Shared Function GetDescriptionForScope ( _
    scopeName As String, _
    objectPrefix As String, _
    connection As SqlConnection _
) As DbSyncScopeDescription
'Usage
Dim scopeName As String
Dim objectPrefix As String
Dim connection As SqlConnection
Dim returnValue As DbSyncScopeDescription

returnValue = SqlSyncDescriptionBuilder.GetDescriptionForScope(scopeName, _
    objectPrefix, connection)
public static DbSyncScopeDescription GetDescriptionForScope(
    string scopeName,
    string objectPrefix,
    SqlConnection connection
)
public:
static DbSyncScopeDescription^ GetDescriptionForScope(
    String^ scopeName, 
    String^ objectPrefix, 
    SqlConnection^ connection
)
static member GetDescriptionForScope : 
        scopeName:string * 
        objectPrefix:string * 
        connection:SqlConnection -> DbSyncScopeDescription 
public static function GetDescriptionForScope(
    scopeName : String, 
    objectPrefix : String, 
    connection : SqlConnection
) : DbSyncScopeDescription

Parameter

  • scopeName
    Typ: System. . :: . .String
    Der Name des Bereichs, für den eine Beschreibung abgerufen werden soll.
  • objectPrefix
    Typ: System. . :: . .String
    Das optionale Präfix, das zum Identifizieren von Objekten verwendet wird, die von Sync Framework erstellt werden.

Rückgabewert

Typ: Microsoft.Synchronization.Data. . :: . .DbSyncScopeDescription
Ein DbSyncScopeDescription-Objekt, das Informationen zum angegebenen Bereich enthält.

Ausnahmen

Ausnahme Bedingung
ArgumentNullException

connection ist NULL.

ArgumentException

scopeName ist NULL oder leer.

Siehe auch

Verweis

SqlSyncDescriptionBuilder Klasse

SqlSyncDescriptionBuilder-Member

GetDescriptionForScope-Überladung

Microsoft.Synchronization.Data.SqlServer-Namespace