StorageProvider class

Applies to Windows only

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


/* For information about creating or accessing this object, see Remarks. */

Attributes

[MarshalingBehavior(Standard)]
[Muse()]
[Version(0x06030000)]

Members

The StorageProvider class has these types of members:

Methods

The StorageProvider class inherits methods from the Object class (C#/VB/C++).

Properties

The StorageProvider class has these properties.

PropertyAccess typeDescription

DisplayName

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

Id

Read-onlyGets an identifier for the current provider of files and folders.

 

Remarks

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

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

Requirements

Minimum supported client

Windows 8.1 [Windows Store apps only]

Minimum supported server

Windows Server 2012 R2 [Windows Store apps only]

Minimum supported phone

None supported

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

Object

 

 

Show:
© 2014 Microsoft