ISyncMgrSyncItemInfo::IsConnected method (syncmgr.h)
Generates a value that indicates whether the item—typically some type of external device—is connected.
Syntax
HRESULT IsConnected();
Return value
Type: HRESULT
Returns S_OK if the item is connected; otherwise, S_FALSE. An error returned by this method will be interpreted as S_OK.
Remarks
If an item is disconnected, it is not synchronized by Sync Center. Also, many of the possible actions available to a item—such as Sync—are removed or disabled in the UI.
This value is available in the folder UI as the System.Sync.Connected (PKEY_Sync_Connected) property.
Sync Center calls this method whenever the UpdateHandler method is called.
Examples
The following example shows an implementation of this method that calls a private class function to retrieve the connected state.
STDMETHODIMP CMyDeviceSyncItem::IsConnected()
{
return (_IsConnected() ? S_OK : S_FALSE);
}
Requirements
Requirement | Value |
---|---|
Minimum supported client | Windows Vista [desktop apps only] |
Minimum supported server | Windows Server 2008 [desktop apps only] |
Target Platform | Windows |
Header | syncmgr.h |
Σχόλια
https://aka.ms/ContentUserFeedback.
Σύντομα διαθέσιμα: Καθ' όλη τη διάρκεια του 2024 θα καταργήσουμε σταδιακά τα ζητήματα GitHub ως μηχανισμό ανάδρασης για το περιεχόμενο και θα το αντικαταστήσουμε με ένα νέο σύστημα ανάδρασης. Για περισσότερες πληροφορίες, ανατρέξτε στο θέμα:Υποβολή και προβολή σχολίων για