System.Tether.AppProfile.TTetheringAppProfile.UnSubscribeFromRemoteItem

From RAD Studio API Documentation
Jump to: navigation, search

Delphi

function UnSubscribeFromRemoteItem(const AProfile: TTetheringProfileInfo; const ARemoteItem: TCustomRemoteItem): Boolean; overload;
function UnSubscribeFromRemoteItem(const AProfile: TTetheringProfileInfo; const ARemoteItemName: string): Boolean; overload;

C++

bool __fastcall UnSubscribeFromRemoteItem(const System::Tether::Manager::TTetheringProfileInfo &AProfile, TCustomRemoteItem* const ARemoteItem)/* overload */;
bool __fastcall UnSubscribeFromRemoteItem(const System::Tether::Manager::TTetheringProfileInfo &AProfile, const System::UnicodeString ARemoteItemName)/* overload */;

Properties

Type Visibility Source Unit Parent
function public
System.Tether.AppProfile.pas
System.Tether.AppProfile.hpp
System.Tether.AppProfile TTetheringAppProfile

Description

Unsubscribes this application profile from the specified remote resource of the specified remote profile to which you previously subscribed for updates.

You can specify a remote resource to unsubscribe with either of the following sets of parameters:

  • Provide the remote application profile that contains the remote resource as an instance of TTetheringProfileInfo and the name of the remote resource.
  • Provide the remote application profile that contains the remote resource as an instance of TTetheringProfileInfo and an instance of TCustomRemoteItem.

Exceptions

A call to UnSubscribeFromRemoteItem may raise any of the following exceptions:

Exception Exception.Message Scenarios

ETetheringException

Profile <profile identifier> is not connected.

  • AProfile is not connected.

No available connections to <profile identifier>

Cannot get a connection to profile <profile identifier>.

Cannot connect to profile <profile identifier>

See Also