SystemProperties 類別

定義

提供字串值來編制一般 Windows 檔案屬性 的索引名稱,例如 System.Title,也會參考協助程式物件,這些物件會針對特定檔案類型的屬性提供索引名稱,例如 (影片檔案) 。

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

Windows 需求

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

備註

使用 SystemProperties 的案例是當您定義搜尋索引或其他作業時,您希望索引針對系統已經定義的屬性使用相同的名稱,做為其中一個 Windows 檔案屬性

某些 SystemProperties 屬性會直接傳回字串名稱。 例如, SystemProperties.Title 會傳回字串 「System.Title」。 某些 SystemProperties 屬性會傳回協助程式物件。 例如, SystemProperties.Video 會傳回 SystemVideoProperties 物件。 然後,您可以使用這個物件的屬性來取得視訊特定 Windows 檔案屬性的名稱,例如 SystemVideoProperties.FrameHeight 會傳回 「System.Video.FrameHeight」。

屬性

Audio

取得 物件,這個物件提供System.AudioWindows 檔案屬性索引名稱。

Author

取得 System.Author 屬性的名稱, (其中一個 Windows 檔案屬性

Comment

取得 System.Comment 屬性的名稱, (其中一個 Windows 檔案屬性

GPS

取得 物件,提供System.GPS之 Windows 系統檔案屬性的索引名稱。

Image

取得 物件,這個物件提供System.ImageWindows 檔案屬性索引名稱。

ItemNameDisplay

取得 System.ItemNameDisplay 屬性的名稱, (其中一個 Windows 檔案屬性

Keywords

取得 System.Keywords 屬性的名稱, (其中一個 Windows 檔案屬性

Media

取得 物件,提供 系統媒體檔案屬性 的索引名稱,例如 System.Media.Duration

Music

取得 物件,這個物件提供System.MusicWindows 檔案屬性索引名稱。

Photo

取得 物件,這個物件提供System.PhotoWindows 檔案屬性索引名稱。

Rating

取得 System.Rating 屬性的名稱, (其中一個 Windows 檔案屬性

Title

取得 System.Title 屬性的名稱, (其中一個 Windows 檔案屬性

Video

取得 物件,這個物件提供System.VideoWindows 檔案屬性索引名稱。

適用於