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

Operates just like Db4objects.Db4o.Db4oFactory.OpenServer , but uses the global db4o Configuration context. opens an ObjectServer on the specified database file and port.

If the server does not need to listen on a port because it will only be used in embedded mode with Db4objects.Db4o.IObjectServer.OpenClient , specify '0' as the port number.

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

Syntax

Visual Basic (Declaration)
Public Shared Function OpenServer ( _
	databaseFileName As String, _
	port As Integer _
) As IObjectServer
C#
public static IObjectServer OpenServer (
	string databaseFileName,
	int port
)
Visual C++
public:
static IObjectServer^ OpenServer (
	String^ databaseFileName, 
	int port
)

Parameters

databaseFileName
System.String
an absolute or relative path to the database file
port
System.Int32
the port to be used, or 0, if the server should not open a port, because it will only be used with Db4objects.Db4o.IObjectServer.OpenClient

Return Value

an ObjectServer listening on the specified port.

See Also