SqlSyncDescriptionBuilder.GetDescriptionForScope 方法 (String, String, SqlConnection)

返回一个 DbSyncScopeDescription 对象,该对象包含有关为 SQL Server 数据库定义的指定作用域的信息。

命名空间: Microsoft.Synchronization.Data.SqlServer
程序集: Microsoft.Synchronization.Data.SqlServer(在 microsoft.synchronization.data.sqlserver.dll 中)

语法

声明
Public Shared Function GetDescriptionForScope ( _
    scopeName As String, _
    objectPrefix As String, _
    connection As SqlConnection _
) As DbSyncScopeDescription
用法
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
)
public static DbSyncScopeDescription GetDescriptionForScope (
    String scopeName, 
    String objectPrefix, 
    SqlConnection connection
)
public static function GetDescriptionForScope (
    scopeName : String, 
    objectPrefix : String, 
    connection : SqlConnection
) : DbSyncScopeDescription

参数

  • scopeName
    要为其检索说明的作用域的名称。
  • objectPrefix
    用于标识 Sync Framework 创建的对象的可选前缀。
  • connection
    包含与数据库的连接的 SqlConnection 对象。

返回值

一个包含指定作用域相关信息的 DbSyncScopeDescription 对象。

请参阅

参考

SqlSyncDescriptionBuilder 类
SqlSyncDescriptionBuilder 成员
Microsoft.Synchronization.Data.SqlServer 命名空间