Initializes the Native Client system to be able to connect to the GemFire Java servers.

Namespace: GemStone.GemFire.Cache
Assembly:  GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll)
Version: 2.7.0.1

Syntax

C#
public static DistributedSystem Connect(
	string name,
	Properties config,
	bool useMemberType
)
Visual Basic (Declaration)
Public Shared Function Connect ( _
	name As String, _
	config As Properties, _
	useMemberType As Boolean _
) As DistributedSystem
Visual C++
public:
static DistributedSystem^ Connect (
	String^ name, 
	Properties^ config, 
	bool useMemberType
)

Parameters

name
String
the name of the system to connect to
config
Properties
the set of properties
useMemberType
Boolean
If true (default), use the configuration property "member type". If false, always set member type to Server.

Exceptions

ExceptionCondition
GemStone.GemFire.Cache..::IllegalArgumentExceptionif name is null
GemStone.GemFire.Cache..::NoSystemException if the connecting target is not running
GemStone.GemFire.Cache..::AlreadyConnectedException if trying a second connect. An application can have one only one connection to a DistributedSystem.
GemStone.GemFire.Cache..::LicenseException if no valid license is found.
GemStone.GemFire.Cache..::UnknownExceptionotherwise

See Also