System.Tether.AppProfile.TTetheringAppProfile.DoResourceUpdated
Delphi
procedure DoResourceUpdated(LRemoteRes: TRemoteResource); virtual;
C++
virtual void __fastcall DoResourceUpdated(TRemoteResource* LRemoteRes);
プロパティ
種類 | 可視性 | ソース | ユニット | 親 |
---|---|---|---|---|
procedure function |
protected | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
説明
アプリケーション プロファイルがリモート アプリケーション プロファイルから送信された、リソースの更新についての通知を受け取った際に、呼び出されます。
このメソッドは、1 つのパラメータ AResource
を受け取ります。これは、受け取ったリモート リソースを表します。
リモート リソースのプロファイルが、このアプリケーション プロファイルと同じグループ内にある場合、DoResourceUpdated はローカル リソースを、Kind は TTetheringRemoteKind.Mirror であり、Name がそのリモート リソースと同じであることを条件に、Resources コレクションで検索します。該当するローカル リソースが見つかった場合、DoResourceUpdated はこのリソースを更新し、DoResourceReceived をローカルやミラーリング リソース上で呼び出します。
そうでなければ、OnRemoteProfileUpdate イベントに関連づけられているイベント ハンドラがある場合、DoResourceUpdated は、そのイベント ハンドラを呼び出します。
関連項目
- System.Tether.AppProfile.TRemoteResource
- System.Tether.Manager.TTetheringManager.SendNotification
- System.Tether.AppProfile.TCustomRemoteItem.Broadcast
- System.Tether.Manager.TTetheringProfile.Group
- System.Tether.AppProfile.TTetheringAppProfile.Resources
- System.Tether.AppProfile.TLocalResource
- System.Tether.AppProfile.TCustomRemoteItem.Kind
- System.Tether.AppProfile.TCustomRemoteItem.Name
- System.Tether.AppProfile.TLocalResource.DoResourceReceived
- System.Tether.AppProfile.TTetheringAppProfile.OnResourceUpdated