System.Tether.AppProfile.TTetheringAppProfile.DoAcceptResource
Delphi
procedure DoAcceptResource(const AProfileId: string; AResource: TCustomRemoteItem;var AcceptResource: Boolean); virtual;
C++
virtual void __fastcall DoAcceptResource(const System::UnicodeString AProfileId, TCustomRemoteItem* AResource, bool &AcceptResource);
Properties
| Type | Visibility | Source | Unit | Parent |
|---|---|---|---|---|
procedure function |
protected | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
Description
Called when there is an incoming resource to determine whether the incoming resource is accepted or not. See Handling Incoming Remote Resources.
This method receives the following parameters:
AProfileIdis the ProfileIdentifier of the remote application profile that sends the resource.AResourceis an instance of TCustomRemoteItem that contains properties that you can read to determine whether or not you accept the incoming remote resource.AcceptResourceis a boolean value that isTrueby default. You can change this value toFalseif you do not want to receive the incoming resource.
If there is an event handler associated with the OnAcceptResource event, DoAcceptResource calls that event handler.