Gets the value associated with the specified key.Namespace: GemStone.GemFire.Cache.Generic
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll) Version: 220.127.116.11
TryGetValue( TKey key, ref TValue value )
bool TryGetValue( TKey key, ref TValue value )
Function TryGetValue ( _ key As TKey, _ ByRef value As TValue _ ) As
Function TryGetValue ( _ key As TKey, _ ByRef value As TValue _ ) As Boolean
TryGetValue( TKey key, TValue% value )
bool TryGetValue( TKey key, TValue% value )
- Type: TKey
The key whose value to get.
- Type: TValue
When this method returns, the value associated with the specified key, if the key is found; otherwise, the default value for the type of the value parameter. This parameter is passed uninitialized.
Return Valuetrue if the object that implements IDictionary contains an element with the specified key; otherwise, false.
|if key is null|
|if CacheLoader throws an exception|
|If an exception is received from the Java cache server. Only for Native Client regions.|
|if not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it. For pools configured with locators, if no locators are available, innerException of NotConnectedException is set to NoAvailableLocatorsException.|
|If the message received from server could not be handled. This will be the case when an unregistered typeId is received in the reply or reply is not well formed. More information can be found in the log.|
|if the operation timed out|
|if this region has been destroyed|