Lightstreamer .Net Adapter 1.11.0
ContentsIndexHome
PreviousUpNext
IDataProvider.Unsubscribe Method

Called by Lightstreamer Kernel through the Remote Server to end a previous request of data for an Item. After the call has returned, no more ItemEvents for the Item should be sent to the listener until requested by a new subscription for the same Item. 

The method can be blocking, but, as the Proxy Adapter implements subscribe and unsubscribe asynchronously, subsequent subscribe-unsubscribe-subscribe-unsubscribe requests can still be issued by Lightstreamer Server to the Proxy Adapter. When this happens, the requests may be queued on the Remote Adapter, hence some Subscribe calls may be delayed. 

 

C++
void Unsubscribe(string itemName);
C#
void Unsubscribe(string itemName);
Visual Basic
Function Unsubscribe(itemName As string) As void
Parameters 
Description 
string itemName 
Name of an Item. 
Exceptions 
Description 
in case the request cannot be satisfied.  
in case the method execution has caused a severe problem that can compromise future operation of the Data Adapter.