ISubscriptionService TKey  RegisterRegex Method (String, Boolean, ICollection TKey , Boolean, Boolean)vFabric GemFire .NET Client Documentation
Register interest for the keys of the region that match the given regular expression to get updates from the server. Valid only for a Native Client region when client notification ( SetClientNotificationEnabled(Boolean) ) is true. Should only be called for durable clients and with cache server version 5.5 onwards.

Namespace: GemStone.GemFire.Cache.Generic
Assembly: GemStone.GemFire.Cache (in GemStone.GemFire.Cache.dll) Version: 7.0.0.0
Syntax

void RegisterRegex(
	string regex,
	bool isDurable,
	ICollection<TKey> resultKeys,
	bool getInitialValues,
	bool receiveValues
)

Parameters

regex
Type: System String
the regular expression to register
isDurable
Type: System Boolean
whether the registration should be durable
resultKeys
Type: System.Collections.Generic ICollection TKey 
if non-null then the keys that match the regular expression on the server are returned
getInitialValues
Type: System Boolean
true to populate the cache with values of the keys that were registered on the server
receiveValues
Type: System Boolean
whether to act like notify-by-subscription is true
Exceptions

ExceptionCondition
[!:IllegalArgumentException] If the regular expression string is empty.
[!:CacheServerException] If an exception is received from the Java cache server.
[!:NotConnectedException] if not connected to the GemFire system because the client cannot establish usable connections to any of the servers given to it.
[!:MessageException] 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.
[!:RegionDestroyedException] If region destroy is pending.
[!:UnsupportedOperationException] If the region is not a Native Client region or SetClientNotificationEnabled(Boolean) is false.
System TimeoutException if the operation timed out
[!:UnknownException]For other exceptions.
See Also