StorageProvider 類別

定義

包含儲存檔案和資料夾之服務的相關資訊。 檔案和資料夾可由本機檔案系統或 Microsoft OneDrive 等遠端服務儲存。

public ref class StorageProvider sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
class StorageProvider final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Standard)]
public sealed class StorageProvider
Public NotInheritable Class StorageProvider
繼承
Object Platform::Object IInspectable StorageProvider
屬性

Windows 需求

裝置系列
Windows 10 (已於 10.0.10240.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v1.0 引進)

備註

例如,如果檔案或資料夾儲存在 Microsoft OneDrive 上,StorageProvider 將會包含 Microsoft OneDrive 的顯示名稱、識別碼和縮圖。

一般而言,您會存取 StorageProvider 物件,因為呼叫非同步方法和函式。

版本歷程記錄

Windows 版本 SDK 版本 已新增值
1709 16299 IsPropertySupportedForPartialFileAsync

屬性

DisplayName

取得目前檔案和資料夾提供者的使用者易記名稱。

Id

取得目前檔案和資料夾提供者的識別碼。

方法

IsPropertySupportedForPartialFileAsync(String)

判斷雲端儲存體提供者是否支援 屬性。

適用於