Kommentar
Åtkomst till den här sidan kräver auktorisering. Du kan prova att logga in eller ändra kataloger.
Åtkomst till den här sidan kräver auktorisering. Du kan prova att ändra kataloger.
Initializes a new instance of the SqlSyncProvider class for the specified scope name, connection, synchronization object prefix, and object schema.
This constructor is not CLS-compliant.
Namespace: Microsoft.Synchronization.Data.SqlServer
Assembly: Microsoft.Synchronization.Data.SqlServer (in microsoft.synchronization.data.sqlserver.dll)
Syntax
'Declaration
<SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")> _
Public Sub New ( _
scopeName As String, _
connection As SqlConnection, _
objectPrefix As String, _
objectSchema As String _
)
'Usage
Dim scopeName As String
Dim connection As SqlConnection
Dim objectPrefix As String
Dim objectSchema As String
Dim instance As New SqlSyncProvider(scopeName, connection, objectPrefix, objectSchema)
[SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")]
public SqlSyncProvider (
string scopeName,
SqlConnection connection,
string objectPrefix,
string objectSchema
)
[SuppressMessageAttribute(L"Microsoft.Usage", L"CA2214:DoNotCallOverridableMethodsInConstructors")]
public:
SqlSyncProvider (
String^ scopeName,
SqlConnection^ connection,
String^ objectPrefix,
String^ objectSchema
)
/** @attribute SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors") */
public SqlSyncProvider (
String scopeName,
SqlConnection connection,
String objectPrefix,
String objectSchema
)
SuppressMessageAttribute("Microsoft.Usage", "CA2214:DoNotCallOverridableMethodsInConstructors")
public function SqlSyncProvider (
scopeName : String,
connection : SqlConnection,
objectPrefix : String,
objectSchema : String
)
Parameters
- scopeName
The name of the scope, which defines the set of tables (with optional filters) to synchronize.
- connection
A SqlConnection object that contains a connection to the database.
- objectPrefix
The prefix that is optionally specified for the ObjectPrefix property, to identify objects that Sync Framework creates.
- objectSchema
The database schema in which Sync Framework creates objects.
Remarks
Scopes are defined during provisioning by using the DbSyncScopeDescription object.
See Also
Reference
SqlSyncProvider Class
SqlSyncProvider Members
Microsoft.Synchronization.Data.SqlServer Namespace