@cacheserver Connect to a distributed system on (host, port) with the given name. @endcacheserver @nativeclient Initializes the Native Client system to be able to connect to the GemFire Java servers. @endnativeclient

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

Syntax

C#
public static DistributedSystem Connect(
	string name
)
Visual Basic (Declaration)
Public Shared Function Connect ( _
	name As String _
) As DistributedSystem
Visual C++
public:
static DistributedSystem^ Connect (
	String^ name
)

Parameters

name
String
the name of the system to connect to

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..::UnknownExceptionotherwise

See Also