StorageProvider
StorageProvider
StorageProvider
StorageProvider
Class
Definition
Some information relates to pre-released product which may be substantially modified before it’s commercially released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Prerelease APIs are identified by a Prerelease label.
[Contains prerelease APIs.]
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.
public : sealed class StorageProvider : IStorageProviderpublic sealed class StorageProvider : IStorageProviderPublic NotInheritable Class StorageProvider Implements IStorageProvider// You can use this class in JavaScript.
- Attributes
| Device family |
Windows 10 (introduced v10.0.10240.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v1)
|
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
DisplayName DisplayName DisplayName DisplayName
Gets a user-friendly name for the current provider of files and folders.
public : PlatForm::String DisplayName { get; }public string DisplayName { get; }Public ReadOnly Property DisplayName As string// You can use this property in JavaScript.
- Value
- PlatForm::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 : PlatForm::String Id { get; }public string Id { get; }Public ReadOnly Property Id As string// You can use this property in JavaScript.
- Value
- PlatForm::String string string string
The identifier for the provider.
Remarks
The ID can be Local, Network, or OneDrive depending on your provider.
Methods
IsPropertySupportedForPartialFileAsync(String) IsPropertySupportedForPartialFileAsync(String) IsPropertySupportedForPartialFileAsync(String) IsPropertySupportedForPartialFileAsync(String)
Prerelease. Determines if a property is supported by a cloud storage provider.
public : IAsyncOperation<PlatForm::Boolean> IsPropertySupportedForPartialFileAsync(PlatForm::String propertyCanonicalName)public IAsyncOperation<bool> IsPropertySupportedForPartialFileAsync(String propertyCanonicalName)Public Function IsPropertySupportedForPartialFileAsync(propertyCanonicalName As String) As IAsyncOperation( Of bool )// You can use this method in JavaScript.
- propertyCanonicalName
- PlatForm::String String String String
The name of the property. E.g., "System.Photo.DateTaken" or "System.Music.Artist"
True if the property is supported by the cloud storage provider; False otherwise
| Device family |
Windows 10 Insider Preview (introduced v10.0.16257.0)
|
| API contract |
Windows.Foundation.UniversalApiContract (introduced v5)
|
- See Also