Db4oFactory.

OpenClient(string, int, string, string) Method

Summary

Operates just like Db4objects.Db4o.Db4oFactory.OpenClient(Db4objects.Db4o.Config.IConfiguration,System.String,System.Int32,System.String,System.String) , but uses the global db4o Db4objects.Db4o.Config.IConfiguration context. opens an Db4objects.Db4o.IObjectContainer client and connects it to the specified named server and port.

The server needs to Db4objects.Db4o.IObjectServer.GrantAccess(System.String,System.String) for the specified user and password.

A client Db4objects.Db4o.IObjectContainer can be cast to Db4objects.Db4o.Ext.IExtClient to use extended Db4objects.Db4o.Ext.IExtObjectContainer and Db4objects.Db4o.Ext.IExtClient methods.

Assembly
Db4objects.Db4o-2010.dll
Namespace
Db4objects.Db4o
Containing Type
Db4oFactory

Syntax

[System.ObsoleteAttribute(@"See the Db4objects.Db4o.CS.Db4oClientServer class in db4o client server library for methods to open db4o servers and db4o clients.")]
public static IObjectContainer OpenClient(string hostName, int port, string user, string password)

Attributes

Type Description
ObsoleteAttribute

Parameters

Name Type Description
hostName string the host name
port int the port the server is using
user string the user name
password string the user password

Return Value

Type Description
IObjectContainer an open Db4objects.Db4o.IObjectContainer

See Also

  • Db4objects.Db4o.IObjectServer.GrantAccess(System.String,System.String)