CReplicationInstance.State Property

For the latest version of Commerce Server 2007 Help, see the Microsoft Web site.

Gets the current state of a replication for a Commerce Server Staging (CSS) project.

object State { get; }

Return Value

A read-only numeric value that indicates the current state of the replication. The following table shows the valid replication states.

State

Value

Description

REPL_STATE_EMPTY

0

Invalid state.

REPL_STATE_STARTING

1

Replication is starting.

REPL_STATE_RUNNING

2

Replication is running.

REPL_STATE_SENT

3

Replication was sent.

REPL_STATE_ABORTED

4

Replication aborted with an error.

REPL_STATE_CANCELED

5

Replication was canceled.

REPL_STATE_RECEIVING

6

Replication is receiving.

REPL_STATE_PENDING

7

Replication is pending.

REPL_STATE_PARTIAL

8

Replication was partially successful.

This condition can occur when a replication is sent to two destination servers and one server is down. The replication to the server that is up finishes successfully. The replication was partially completed.

REPL_STATE_DONE

9

Replication completed successfully.

Remarks

For a code example, see the EnumReplications method.

The CReplicationInstance.State property corresponds to the COM property named ReplicationInstance.State.

See Also

Other Resources

CReplicationInstance Class