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 事件。

适用于

另请参阅