[This topic is pre-release documentation and is subject to change in future releases. Blank topics are included as placeholders.]
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
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
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.
Assembly: Db4objects.Db4o (in Db4objects.Db4o.dll)
Syntax
Visual Basic (Declaration) |
---|
Public Shared Function OpenServer ( _ config As IConfiguration, _ databaseFileName As String, _ port As Integer _ ) As IObjectServer |
C# |
---|
public static IObjectServer OpenServer ( IConfiguration config, string databaseFileName, int port ) |
Visual C++ |
---|
public: static IObjectServer^ OpenServer ( IConfiguration^ config, String^ databaseFileName, int port ) |
Parameters
- config
- Db4objects.Db4o.Config.IConfiguration
a custom Configuration instance to be obtained via Db4objects.Db4o.Db4oFactory.NewConfiguration
- 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