Previous in Contents Next in Contents

InitializeEx Method

This method initializes the server with a different user context and an optional time-out.

Syntax

ReplicationServer.InitializeEx(Server,UserName,Password,Timeout)

Parameters

Server

The server to communicate with. This value can be Empty ("") for the current server.

UserName

The name of the user to log on to the server as.

Password

The password of the user UserName on server Server.

Timeout

The time, in milliseconds, to wait for the server to initialize before timing out. The default is 300000 (5 minutes).

Remarks

You must have Site Server Publishing administrator privileges on the server to call this method.

Example

The following example initializes the current server under user Steveb, with password Oxymoron.

Option Explicit 
On Error Resume Next

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

ReplServer.InitializeEx("", "Steveb", "Oxymoron", 300000)
...

'Release Server object
set ReplServer = Nothing

See Also

Initialize


© 1997-2000 Microsoft Corporation. All rights reserved.