This read-only property specifies the number of destination servers to which the Content Deployment server replicates files.
Syntax
ReplicationClient.NumDestinations
Remarks
You must have Site Server Publishing administrator privileges on the server to get or set this property.
Example
The following example displays a message with the number of destination servers.
Option Explicit
On Error Resume Next
dim Client
set Client = CreateObject("CrsApi.ReplicationClient")
Client.Initialize("Project1")
dim NumDestinations
NumDestinations = Client.NumDestinations
if 1 = NumDestinations then
Wscript.Echo "There is 1 destination."
else
Wscript.Echo "There are " & NumDestinations & " destinations."
end if
'Release Client object
set Client = Nothing
See Also
ReplicationProject.EnumDestination