ISession.CreateCacheSession Method

Solclient

ISessionCreateCacheSession Method
version: 7.2.1.27
This method creates a cache session instance to be used in subsequent cache request operations on the session. Multiple ICacheSesssion instances may be created on an ISession instance.

Namespace: SolaceSystems.Solclient.Messaging
Assembly: SolaceSystems.Solclient.Messaging (in SolaceSystems.Solclient.Messaging.dll) Version: 7.2.1.27 (7.2.1.27)
Syntax
ICacheSession CreateCacheSession(
	CacheSessionProperties cacheSessionProperties
)
Function CreateCacheSession ( 
	cacheSessionProperties As CacheSessionProperties
) As ICacheSession
ICacheSession^ CreateCacheSession(
	CacheSessionProperties^ cacheSessionProperties
)

Parameters

cacheSessionProperties
Type: SolaceSystems.Solclient.Messaging.CacheCacheSessionProperties
Properties for the new cache session.

Return Value

Type: ICacheSession
Throws OperationErrorException if it fails, otherwise it returns a new ICacheSession instance.
Exceptions
ExceptionCondition
OperationErrorException Thrown when the operation fails.
ObjectDisposedException Thrown when the session is already disposed (terminal state).
ArgumentNullException Thrown when cacheSessionProperties is null.
ArgumentOutOfRangeException Thrown when cacheSessionProperties has invalid property values.
See Also