db4o

Db4oFactory.OpenClient Method (IConfiguration, String, Int32, String, String)

opens an ObjectContainer client and connects it to the specified named server and port.

The server needs to allow access for the specified user and password.

A client ObjectContainer can be cast to ExtClient to use extended ExtObjectContainer and ExtClient methods.

public static IObjectContainer OpenClient(
   IConfiguration config,
   string hostName,
   int port,
   string user,
   string password
);

Parameters

config
a custom Configuration instance to be obtained via Db4objects.Db4o.Db4oFactory.NewConfiguration
hostName
the host name
port
the port the server is using
user
the user name
password
the user password

Return Value

an open ObjectContainer

See Also

Db4oFactory Class | Db4objects.Db4o Namespace | Db4oFactory.OpenClient Overload List | Db4objects.Db4o.IObjectServer.GrantAccess