| HazelcastClientNewHazelcastClient Method (String) |
Creates a new hazelcast client using the given configuration xml file
Namespace:
Hazelcast.Client
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.3
Syntax public static IHazelcastInstance NewHazelcastClient(
string configFile
)
Public Shared Function NewHazelcastClient (
configFile As String
) As IHazelcastInstance
public:
static IHazelcastInstance^ NewHazelcastClient(
String^ configFile
)
static member NewHazelcastClient :
configFile : string -> IHazelcastInstance
Parameters
- configFile
- Type: SystemString
The configuration file with full or relative path.
Return Value
Type:
IHazelcastInstanceIHazelcastInstance.
Examples
var hazelcastInstance = Hazelcast.NewHazelcastClient(@"C:\Users\user\Hazelcast.Net\hazelcast-client.xml");
var myMap = hazelcastInstance.GetMap("myMap");
var hazelcastInstance = Hazelcast.NewHazelcastClient(@"..\Hazelcast.Net\Resources\hazelcast-client.xml");
var myMap = hazelcastInstance.GetMap("myMap");
See Also