Share via


StorageProviderKnownFolderSyncInfo Class

Definition

The StorageProviderKnownFolderSyncInfo class encapsulates all the information relevant to the provider’s backup/sync capability and status.

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
Inheritance
Object Platform::Object IInspectable StorageProviderKnownFolderSyncInfo
Attributes

Windows requirements

Device family
Windows 11 Insider Preview (introduced in 10.0.23504.0)
API contract
Windows.Storage.Provider.CloudFilesContract (introduced in v7.0)

Remarks

StorageProviderKnownFolderSyncInfo lets the provider specify a friendly name and status for known folders. Once the object is returned by GetKnownFolderSyncInfoSource it should be considered immutable. Changing a property on the object after it has been returned could result in undefined behavior. To update any property on StorageProviderKnownFolderSyncInfo, the cloud provider should raise the KnownFolderSyncInfoChanged event on IStorageProviderKnownFolderSyncInfoSource and be ready to provide a new StorageProviderKnownFolderSyncInfo object.

Any missing property or invalid Uri on the StorageProviderKnownFolderSyncInfo will result in the enrollment button not being shown for this provider.

Constructors

StorageProviderKnownFolderSyncInfo()

Creates an instance of StorageProviderKnownFolderSyncInfo.

Properties

KnownFolderEntries

The list of known folders that are registered with the provider.

ProviderDisplayName

The friendly name of the provider.

SyncRequested

The SyncRequested event is raised when the user requests a sync operation on a known folder.

Applies to

See also