@cacheserver
Connect to a distributed system on (host, port) with the given name,
specifying properties.
@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, Properties config ) |
| Visual Basic (Declaration) |
|---|
Public Shared Function Connect ( _ name As String, _ config As Properties _ ) As DistributedSystem |
| Visual C++ |
|---|
public: static DistributedSystem^ Connect ( String^ name, Properties^ config ) |
Parameters
- name
- String
the name of the system to connect to
- config
- Properties
the set of properties
Exceptions
| Exception | Condition |
|---|---|
| GemStone.GemFire.Cache..::IllegalArgumentException | if 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..::UnknownException | otherwise |
See Also
DistributedSystem Class
GemStone.GemFire.Cache Namespace