Lightstreamer PCL (Portable Class Library) Client 3.1.0
ContentsIndexHome
PreviousUpNext
LSClient.UnsubscribeTables Method

Unsubscribes from a set of tables previously subscribed to the Server. The unsubscription requests are sent to the Server in a single connection. If some of the supplied tables are not currently subscribed or have already been unsubscribed, no notification is sent. If the request fails, all the tables have been unsubscribed anyway. 

The method is blocking; it returns only after receiving the Server answer upon the request submission; in case a batch is open, this will happen only upon the execution of the batch. See OpenConnection for details on timeout settings.  

 

C++
public: void UnsubscribeTables(SubscribedTableKey[] tableKeys);
C#
public virtual void UnsubscribeTables(SubscribedTableKey[] tableKeys);
Visual Basic
Public virtual Function UnsubscribeTables(tableKeys As SubscribedTableKey[]) As void
Parameters 
Description 
SubscribedTableKey[] tableKeys 
Array of handles to tables as returned by one or more subscribe* calls.  
Exceptions 
Description 
if the connection has already been closed; this may not be a problem from the client's point of view. 
in case of connection problems. In this case, zombie subscriptions will probably remain in the Server. 
in case of errors in the supplied parameters or in Server answer. In this case, some zombie subscriptions may remain in the Server. In normal conditions, this exception should never happen.