| HazelcastClientGetMapTKey, TValue Method |
Returns the distributed map instance with the specified name.
Namespace:
Hazelcast.Client
Assembly:
Hazelcast.Net (in Hazelcast.Net.dll) Version: 3.9.3
Syntax public IMap<TKey, TValue> GetMap<TKey, TValue>(
string name
)
Public Function GetMap(Of TKey, TValue) (
name As String
) As IMap(Of TKey, TValue)
public:
generic<typename TKey, typename TValue>
virtual IMap<TKey, TValue>^ GetMap(
String^ name
) sealed
abstract GetMap :
name : string -> IMap<'TKey, 'TValue>
override GetMap :
name : string -> IMap<'TKey, 'TValue>
Parameters
- name
- Type: SystemString
name of the distributed map
Type Parameters
- TKey
- The type of the keys in the map
- TValue
- The type of the values in the map
Return Value
Type:
IMapTKey,
TValuedistributed map instance with the specified name
Implements
IHazelcastInstanceGetMapTKey, TValue(String)Remarks Returns the distributed map instance with the specified name.
Examples var myMap = hazelcastInstance.GetMap<string,int>("theMap");
myMap.Put("item1",10);
int value=myMap.Get("item1");
See Also