[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]

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.

Namespace: Db4objects.Db4o
Assembly:   Db4objects.Db4o (in Db4objects.Db4o.dll)

Syntax

Visual Basic (Declaration)
Public Shared Function OpenClient ( _
	config As IConfiguration, _
	hostName As String, _
	port As Integer, _
	user As String, _
	password As String _
) As IObjectContainer
C#
public static IObjectContainer OpenClient (
	IConfiguration config,
	string hostName,
	int port,
	string user,
	string password
)
Visual C++
public:
static IObjectContainer^ OpenClient (
	IConfiguration^ config, 
	String^ hostName, 
	int port, 
	String^ user, 
	String^ password
)

Parameters

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

Return Value

an open ObjectContainer

See Also