SqlCeReplication Members

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

The SqlCeReplication type exposes the following members.

Constructors

  Name Description
Public method SqlCeReplication() () () () Initializes a new instance of the SqlCeReplication object. This is the default constructor.
Public method SqlCeReplication(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 method SqlCeReplication(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

Methods

  Name Description
Public method AddSubscription(AddOption) Creates a new anonymous subscription to an existing 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 method BeginSynchronize(AsyncCallback, Object) Starts an asynchronous data synchronization operation. When synchronization ends, the AsyncCallback delegates are called. During synchronization, no status reporting is performed.
Public method BeginSynchronize(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 method CancelSynchronize() () () () Cancels an ongoing asynchronous data synchronization that was started by calling the BeginSynchronize method.
Public method Dispose() () () () Releases all native resources.
Public method DropSubscription(DropOption) Drops the subscription to a publication and optionally deletes the database from the -based device.
Public method EndSynchronize(IAsyncResult) Ends an asynchronous data synchronization that was started by a call to the BeginSynchronize method.
Public method Equals(Object) (inherited from Object)
Protected method Finalize() () () () (inherited from Object)
Public method GetHashCode() () () () (inherited from Object)
Public method GetType() () () () (inherited from Object)
Public method LoadProperties() () () () Retrieves all values stored for the synchronization properties, and then populates the SqlCeReplication class properties with these saved values.
Protected method MemberwiseClone() () () () (inherited from Object)
Public method ReinitializeSubscription(Boolean) Marks 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 method SaveProperties() () () () Retrieves all of the values stored in the SqlCeReplication class properties for the current subscription and stores them in a system table.
Public method Synchronize() () () () Invokes merge replication between the subscription and the Publisher.
Public method ToString() () () () (inherited from Object)

Top

Properties

  Name Description
Public property CompressionLevel Specifies the amount of compression that will be used by the compression routines during replication.
Public property ConnectionManager Enables 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 property ConnectionRetryTimeout Specifies how long (in seconds) the client will continue to retry sending requests after an established connection has failed.
Public property ConnectTimeout Gets or sets the amount of time, in milliseconds, that the SqlCeReplication object waits for a connection to the server.
Public property Distributor Specifies the Distributor.
Public property DistributorAddress Specifies the network address used when the Reconciler is connecting to the Distributor.
Public property DistributorLogin Specifies the login name used when connecting to the Distributor.
Public property DistributorNetwork Specifies the network protocol used when the Reconciler communicates with the Distributor.
Public property DistributorPassword Specifies the login password used when connecting to the Distributor.
Public property DistributorSecurityMode Specifies the security mode used when connecting to the Distributor.
Public property ExchangeType Specifies whether the synchronization between the Publisher and the Subscriber is bi-directional or upload only.
Public property HostName Gets or sets the host name used for the device when connecting to the Publisher.
Public property InternetLogin Specifies the login name used when connecting to the Server Agent.
Public property InternetPassword Specifies the password used when connecting to the Server Agent.
Public property InternetProxyLogin Specifies the login name used when connecting to an InternetProxyServer that requires authentication.
Public property InternetProxyPassword Specifies the password used when connecting to an InternetProxyServer that requires authentication.
Public property InternetProxyServer Specifies the proxy server to use when accessing the HTTP resource specified in the InternetUrl property.
Public property InternetUrl Specifies the URL used to connect to the Server Agent.
Public property LoginTimeout Specifies 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 property PostSyncCleanup Gets or sets a value that selectively enables or disables the types of post sync cleanup operations that are performed.
Public property ProfileName Specifies the name of the agent profile at the Distributor to be used by the SqlCeReplication object.
Public property Publication Specifies the publication name that has been enabled for subscribers.
Public property Publisher Specifies the name of the Publisher. The Publisher is the computer that is running and that contains the publication.
Public property PublisherAddress Specifies the network address used when connecting to the Publisher.
Public property PublisherChanges Specifies the total number of Publisher changes applied at the Subscriber when the Synchronize method was last called.
Public property PublisherConflicts Specifies the total number of conflicts that occurred at the Publisher when the Synchronize method was last called.
Public property PublisherDatabase Specifies the name of the publication database.
Public property PublisherLogin Specifies the login name used when connecting to the Publisher.
Public property PublisherNetwork Specifies the network protocol used when the Replication Provider communicates with the Publisher.
Public property PublisherPassword Specifies the login password used when connecting to the Publisher.
Public property PublisherSecurityMode Specifies the security mode used when connecting to the Publisher.
Public property QueryTimeout Specifies the number of seconds allowed for internal queries to complete.
Public property ReceiveTimeout Gets or sets the amount of time, in milliseconds, that the SqlCeReplication object waits for the response to a server request.
Public property SendTimeout Gets or sets the amount of time, in milliseconds, that the SqlCeReplication object waits to send a request to the server.
Public property SnapshotTransferType Controls 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 property Subscriber Specifies the name of the Subscriber.
Public property SubscriberChanges Specifies the total number of Subscriber changes applied at the Publisher when the Synchronize method was last called.
Public property SubscriberConflicts This property is not used by .
Public property SubscriberConnectionString Specifies the connection string to the database.
Public property Validate Specifies the type of data validation replication performs while synchronizing.

Top

See Also

Reference

SqlCeReplication Class

System.Data.SqlServerCe Namespace