Jaa


CReplicationClient.NumDestinations Property

Gets the number of destination servers defined for a Commerce Server Staging (CSS) project.

Note

This property and the CReplicationClient object are used only to stage individual files. You cannot use this property to stage projects.

Object NumDestinations { get; }

Return Value

The number of destination servers that are configured to replicate files for the specified project.

Remarks

You must have CSS administrator or operator rights on the project to get this property.

The CReplicationClient.NumDestinations property corresponds to the COM property named ReplicationClient.NumDestinations.

Example

The following example displays a message that specifies the number of destination servers that are defined for Project1.

CReplicationClient replicationClient = new CReplicationClient();
replicationClient.Initialize("Project1");
int numDestinations;
numDestinations = (int)replicationClient.NumDestinations;
if (1 == numDestinations)
{
    Console.WriteLine("There is 1 destination.");
}
else
{
    Console.WriteLine("There are {0} destinations.", numDestinations);
}

See Also

Other Resources

CReplicationProject.EnumDestination Method

CReplicationClient Class