StorageProvider StorageProvider StorageProvider StorageProvider Class

Contains info about the service that stores files and folders. Files and folders may be stored either by the local file system or by a remote service like Microsoft OneDrive.

Syntax

Declaration

public sealed class StorageProviderpublic sealed class StorageProviderPublic NotInheritable Class StorageProvider

Remarks

For example, if a file or folder is stored on Microsoft OneDrive, StorageProvider will contain a display name, id, and thumbnail for Microsoft OneDrive.

Typically, you access StorageProvider objects as the result of calls to asynchronous methods and functions.

Properties summary

Gets a user-friendly name for the current provider of files and folders.

Gets an identifier for the current provider of files and folders.

Properties

  • DisplayName
    DisplayName
    DisplayName
    DisplayName

    Gets a user-friendly name for the current provider of files and folders.

    public string DisplayName { get; }public string DisplayName { get; }Public ReadOnly Property DisplayName As string

    Property Value

    • string
      string
      string
      string

      The user-friendly name for the provider. This name is localized to the current system locale.

  • Id
    Id
    Id
    Id

    Gets an identifier for the current provider of files and folders.

    public string Id { get; }public string Id { get; }Public ReadOnly Property Id As string

    Property Value

    • string
      string
      string
      string

      The identifier for the provider.

Device family

Windows 10 (introduced v10.0.10240.0)

API contract

Windows.Foundation.UniversalApiContract (introduced v1)

Attributes

Windows.Foundation.Metadata.MarshalingBehaviorAttribute
Windows.Foundation.Metadata.ContractVersionAttribute
Windows.Foundation.Metadata.MuseAttribute

Details

Assembly

Windows.Storage.dll