SystemDataPaths 類別

定義

根據 KNOWNFOLDERID 命名模式,取得一些常用的系統寬資料夾位置。

public ref class SystemDataPaths sealed
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 327680)]
/// [Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
/// [Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
class SystemDataPaths final
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 327680)]
[Windows.Foundation.Metadata.MarshalingBehavior(Windows.Foundation.Metadata.MarshalingType.Agile)]
[Windows.Foundation.Metadata.Threading(Windows.Foundation.Metadata.ThreadingModel.Both)]
public sealed class SystemDataPaths
Public NotInheritable Class SystemDataPaths
繼承
Object Platform::Object IInspectable SystemDataPaths
屬性

Windows 需求

裝置系列
Windows 10 Fall Creators Update (已於 10.0.16299.0 引進)
API contract
Windows.Foundation.UniversalApiContract (已於 v5.0 引進)

備註

這個類別包含方法與屬性,這些方法與屬性會傳回與傳統型應用程式所使用的路徑一致。

屬性

Fonts

取得字型資料夾的路徑。

ProgramData

取得電腦上 ProgramData 資料夾的路徑。

Public

取得電腦上公用資料夾的路徑。

PublicDesktop

取得電腦上 [公用桌面] 資料夾的路徑。

PublicDocuments

取得電腦上 [公用檔] 資料夾的路徑。

PublicDownloads

取得電腦上 [公用下載] 資料夾的路徑。

PublicMusic

取得電腦上 [公用音樂] 資料夾的路徑。

PublicPictures

取得電腦上 [公用圖片] 資料夾的路徑。

PublicVideos

取得電腦上 [公用影片] 資料夾的路徑。

System

取得 Windows 系統資料夾的路徑。

SystemArm

取得使用 ARM 作業系統之電腦的 [系統] 資料夾路徑。

SystemHost

取得 [系統] 資料夾的路徑,不論作業系統架構 (x64、x86、ARM) 為何。

SystemX64

取得 64 位 Windows 系統資料夾的路徑。

SystemX86

取得 32 位 Windows 系統資料夾的路徑。

UserProfiles

取得電腦使用者設定檔的路徑。

Windows

取得 Windows 目錄的路徑。

方法

GetDefault()

取得各種系統資料檔案夾的路徑。

適用於