Creating a ReplicationServer Object

You create a new ReplicationServer object by calling the CreateObject method, as in the following example, where ReplServer is the name you give to the new ReplicationServer object:

Option Explicit 
On Error Resume Next

dim ReplServer
Set ReplServer = CreateObject("CrsApi.ReplicationServer")
ReplServer.Initialize("")
...

'Release Server object
set ReplServer = Nothing

Once you have access to the ReplicationServer object, you must call the Initialize method to initialize the object before you can call any of its methods or set or get any of its properties.


© 1997-1998 Microsoft Corporation. All rights reserved.