共用方式為


StorageProviderKnownFolderSyncInfo 類別

定義

StorageProviderKnownFolderSyncInfo類別會封裝與提供者備份/同步功能及狀態相關的所有資訊。

public ref class StorageProviderKnownFolderSyncInfo sealed
/// [Windows.Foundation.Metadata.Activatable(458752, "Windows.Storage.Provider.CloudFilesContract")]
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Storage.Provider.CloudFilesContract, 458752)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class StorageProviderKnownFolderSyncInfo final
[Windows.Foundation.Metadata.Activatable(458752, "Windows.Storage.Provider.CloudFilesContract")]
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Storage.Provider.CloudFilesContract), 458752)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class StorageProviderKnownFolderSyncInfo
function StorageProviderKnownFolderSyncInfo()
Public NotInheritable Class StorageProviderKnownFolderSyncInfo
繼承
Object Platform::Object IInspectable StorageProviderKnownFolderSyncInfo
屬性

Windows 需求

裝置系列
Windows 11 Insider Preview (已於 10.0.23504.0 引進)
API contract
Windows.Storage.Provider.CloudFilesContract (已於 v7.0 引進)

備註

StorageProviderKnownFolderSyncInfo 可讓提供者指定已知資料夾的易記名稱和狀態。 一旦 GetKnownFolderSyncInfoSource傳回物件,就應該視為不可變。 傳回物件之後變更物件上的屬性可能會導致未定義的行為。 若要更新StorageProviderKnownFolderSyncInfo上的任何屬性,雲端提供者應該在IStorageProviderKnownFolderSyncInfoSource上引發KnownFolderSyncInfoChanged事件,並準備好提供新的StorageProviderKnownFolderSyncInfo物件。

StorageProviderKnownFolderSyncInfo上任何遺漏的屬性或無效 URI,都會導致此提供者未顯示註冊按鈕。

建構函式

StorageProviderKnownFolderSyncInfo()

建立 StorageProviderKnownFolderSyncInfo的實例。

屬性

KnownFolderEntries

向提供者註冊的已知資料夾清單。

ProviderDisplayName

提供者的易記名稱。

SyncRequested

當使用者在已知資料夾上要求同步處理作業時,就會引發 SyncRequested 事件。

適用於

另請參閱