Jaa


IStorageProviderKnownFolderSyncInfoSourceFactory Interface

Definition

The interface that a cloud provider implements to provide instances of IStorageProviderKnownFolderSyncInfoSource to File Explorer.

public interface class IStorageProviderKnownFolderSyncInfoSourceFactory
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Storage.Provider.CloudFilesContract, 458752)]
/// [Windows.Foundation.Metadata.Guid(2867725223, 42998, 20670, 169, 176, 142, 130, 208, 200, 16, 130)]
struct IStorageProviderKnownFolderSyncInfoSourceFactory
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Storage.Provider.CloudFilesContract), 458752)]
[Windows.Foundation.Metadata.Guid(2867725223, 42998, 20670, 169, 176, 142, 130, 208, 200, 16, 130)]
public interface IStorageProviderKnownFolderSyncInfoSourceFactory
Public Interface IStorageProviderKnownFolderSyncInfoSourceFactory
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

Cloud providers implement this interface and register it as an extension in the app manifest. A new manifest element will be added to the package manifest schema under the CloudFiles extension element. You can use this element in the CloudFiles namespace:

<Package
    xmlns:desktop3="http://schemas.microsoft.com/appx/manifest/desktop/windows10/3"
    xmlns:cloudfiles="http://schemas.microsoft.com/appx/manifest/cloudfiles/windows10"
    xmlns:cloudfiles3="http://schemas.microsoft.com/appx/manifest/cloudfiles/windows10/3"
>

<Applications>
    <Application>
        <Extensions>
            <desktop3:Extension>
            <desktop3:CloudFiles>
            <cloudfiles3: StorageProviderKnownFolderSyncInfoSourceFactory >
...
</Applications>

Alternatively, for non-packaged Win32 apps, registration of this class can be done directly in the registry by setting the CLSID of the implementation class as the value of the following registry key:

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\StorageProvider

This is consistent with the existing mechanism for unpackaged provider registration. This registration allows a storage provider to offer the entry point before a cloud user account is added. When installed globally, cloud providers should register the factory in each user's profile.

Methods

GetKnownFolderSyncInfoSource()

The method that File Explorer calls to obtain an instance of IStorageProviderKnownFolderSyncInfoSource for a given provider.

Applies to

See also