System.Tether.AppProfile.TTetheringAppProfile.NotifyProfileUpdates
Delphi
property NotifyProfileUpdates: Boolean read FNotifyProfileUpdates write FNotifyProfileUpdates;
C++
__property bool NotifyProfileUpdates = {read=FNotifyProfileUpdates, write=FNotifyProfileUpdates, nodefault};
Propriétés
Type | Visibilité | Source | Unité | Parent |
---|---|---|---|---|
property | public | System.Tether.AppProfile.pas System.Tether.AppProfile.hpp |
System.Tether.AppProfile | TTetheringAppProfile |
Description
Spécifie si les changements apportés aux actions et ressources locales doivent envoyer des notifications sur les mises à jour automatiquement aux profils distants connectés (True
) ou non (False
).
Même si NotifyProfileUpdates vaut True
, vous pouvez la désactiver temporairement si vous êtes en train de modifier quelques éléments locaux d'affilée, et appeler NotifyProfileUpdate après vos changements pour qu'il existe une seule notification sur toutes les modifications :
Dans C++ :
NotifyProfileUpdates = false;
// Apporter quelques changements aux éléments locaux.
NotifyProfileUpdate();
NotifyProfileUpdates = true;
Dans Delphi :
NotifyProfileUpdates := False;
// Apporter quelques changements aux éléments locaux.
NotifyProfileUpdate;
NotifyProfileUpdates := True;