Export (0) Print
Expand All
This topic has not yet been rated - Rate this topic

SqlCeReplication Class

This type has a SecurityCriticalAttribute attribute, which restricts it to internal use by the .NET Framework for Silverlight class library. Application code that uses any member of this type throws a MethodAccessException.
[SECURITY CRITICAL]

Initializes a new instance of the SqlCeReplication object. For more information about SQL Server replication, see the SQL Server Books Online. For more information about merge replication with SQL Server Compact, see the SQL Server Compact Books Online.

System.Object
  System.Data.SqlServerCe.SqlCeReplication

Namespace:  System.Data.SqlServerCe
Assembly:  System.Data.SqlServerCe (in System.Data.SqlServerCe.dll)
[SecurityCriticalAttribute(SecurityCriticalScope.Everything)]
[PermissionSetAttribute(SecurityAction.Demand, Name = "FullTrust")]
public sealed class SqlCeReplication : IDisposable

The SqlCeReplication type exposes the following members.

  NameDescription
Public methodSqlCeReplication()Initializes a new instance of the SqlCeReplication object. This is the default constructor.
Public methodSqlCeReplication(String, String, String, String, String, String, String, String)Initializes a new instance of the SqlCeReplication object and sets the required properties for connecting to a publication.
Public methodSqlCeReplication(String, String, String, String, String, String, String, String, String, String)Initializes a new instance of the SqlCeReplication object and sets the properties for connecting to a publication.
Top
  NameDescription
Public propertyCompressionLevelSpecifies the amount of compression that will be used by the compression routines during replication.
Public propertyConnectionManagerEnables the Replication object to use the smart device's Connection Manager API to establish a network connection. The connection is released at the end of synchronization.
Public propertyConnectionRetryTimeoutSpecifies how long (in seconds) the SQL Server Compact client will continue to retry sending requests after an established connection has failed.
Public propertyConnectTimeoutGets or sets the amount of time, in milliseconds, that the SqlCeReplication object waits for a connection to the server.
Public propertyDistributorSpecifies the SQL Server Distributor.
Public propertyDistributorAddressSpecifies the network address used when the SQL Server Reconciler is connecting to the Distributor.
Public propertyDistributorLoginSpecifies the login name used when connecting to the Distributor.
Public propertyDistributorNetworkSpecifies the network protocol used when the SQL Server Reconciler communicates with the Distributor.
Public propertyDistributorPasswordSpecifies the login password used when connecting to the Distributor.
Public propertyDistributorSecurityModeSpecifies the security mode used when connecting to the Distributor.
Public propertyExchangeTypeSpecifies whether the synchronization between the Publisher and the Subscriber is bi-directional or upload only.
Public propertyHostNameGets or sets the host name used for the device when connecting to the Publisher.
Public propertyInternetLoginSpecifies the login name used when connecting to the SQL Server Compact Server Agent.
Public propertyInternetPasswordSpecifies the password used when connecting to the SQL Server Compact Server Agent.
Public propertyInternetProxyLoginSpecifies the login name used when connecting to an InternetProxyServer that requires authentication.
Public propertyInternetProxyPasswordSpecifies the password used when connecting to an InternetProxyServer that requires authentication.
Public propertyInternetProxyServerSpecifies the proxy server to use when accessing the HTTP resource specified in the InternetUrl property.
Public propertyInternetUrlSpecifies the URL used to connect to the SQL Server Compact Server Agent.
Public propertyLoginTimeoutSpecifies the maximum number of seconds to wait for connections to be established. This property affects the connection time between the computer running Internet Information Services (IIS) and the Publisher or Distributor. It does not control the connection time between the smart device and IIS.
Public propertyPostSyncCleanupGets or sets a value that selectively enables or disables the types of post sync cleanup operations that are performed.
Public propertyProfileNameSpecifies the name of the agent profile at the Distributor to be used by the SqlCeReplication object.
Public propertyPublicationSpecifies the SQL Server publication name that has been enabled for SQL Server Compact subscribers.
Public propertyPublisherSpecifies the name of the SQL Server Publisher. The Publisher is the computer that is running SQL Server and that contains the publication.
Public propertyPublisherAddressSpecifies the network address used when connecting to the Publisher.
Public propertyPublisherChangesSpecifies the total number of Publisher changes applied at the Subscriber when the Synchronize method was last called.
Public propertyPublisherConflictsSpecifies the total number of conflicts that occurred at the Publisher when the Synchronize method was last called.
Public propertyPublisherDatabaseSpecifies the name of the publication database.
Public propertyPublisherLoginSpecifies the login name used when connecting to the Publisher.
Public propertyPublisherNetworkSpecifies the network protocol used when the SQL Server Replication Provider communicates with the Publisher.
Public propertyPublisherPasswordSpecifies the login password used when connecting to the Publisher.
Public propertyPublisherSecurityModeSpecifies the security mode used when connecting to the Publisher.
Public propertyQueryTimeoutSpecifies the number of seconds allowed for internal queries to complete.
Public propertyReceiveTimeoutGets or sets the amount of time, in milliseconds, that the SqlCeReplication object waits for the response to a server request.
Public propertySendTimeoutGets or sets the amount of time, in milliseconds, that the SqlCeReplication object waits to send a request to the server.
Public propertySnapshotTransferTypeControls how snapshot files are transferred from the Distributor to the computer running IIS. Snapshot files can be transferred using either the HTTP or the FTP protocol.
Public propertySubscriberSpecifies the name of the Subscriber.
Public propertySubscriberChangesSpecifies the total number of Subscriber changes applied at the Publisher when the Synchronize method was last called.
Public propertySubscriberConflictsThis property is not used by SQL Server Compact.
Public propertySubscriberConnectionStringSpecifies the connection string to the SQL Server Compact database.
Public propertyValidateSpecifies the type of data validation SQL Server Compact replication performs while synchronizing.
Top
  NameDescription
Public methodAddSubscriptionCreates a new anonymous subscription to an existing SQL Server publication. After calling the AddSubscription method, the application must call the Synchronize method to synchronize the new subscription to the publication based on the latest snapshot.
Public methodBeginSynchronize(AsyncCallback, Object)Starts an asynchronous data synchronization operation. When synchronization ends, the AsyncCallback delegates are called. During synchronization, no status reporting is performed.
Public methodBeginSynchronize(AsyncCallback, OnStartTableUpload, OnStartTableDownload, OnSynchronization, Object)Starts an asynchronous data synchronization operation. When the synchronization ends, the AsyncCallback delegates are called. During the synchronization, synchronization status reports are sent to the SyncStatusReport delegates.
Public methodCancelSynchronizeCancels an ongoing asynchronous data synchronization that was started by calling the BeginSynchronize method.
Public methodDisposeReleases all native resources.
Public methodDropSubscriptionDrops the subscription to a SQL Server publication and optionally deletes the SQL Server Compact database from the Windows Mobile-based device.
Public methodEndSynchronizeEnds an asynchronous data synchronization that was started by a call to the BeginSynchronize method.
Public methodEquals (inherited from Object)
Protected methodFinalize (inherited from Object)
Public methodGetHashCode (inherited from Object)
Public methodGetType (inherited from Object)
Public methodLoadPropertiesRetrieves all values stored for the synchronization properties, and then populates the SqlCeReplication class properties with these saved values.
Protected methodMemberwiseClone (inherited from Object)
Public methodReinitializeSubscriptionMarks a subscription for reinitialization. After calling this method, an application must call the Synchronize method to download the latest snapshot of the publication to the device.
Public methodSavePropertiesRetrieves all of the values stored in the SqlCeReplication class properties for the current subscription and stores them in a system table.
Public methodSynchronizeInvokes merge replication between the SQL Server Compact subscription and the SQL Server Publisher.
Public methodToString (inherited from Object)
Top
Any public static (Shared in Microsoft Visual Basic) members of this type are thread safe. Any instance members are not guaranteed to be thread safe.
Did you find this helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2014 Microsoft. All rights reserved.