Sdílet prostřednictvím


SystemProperties Class

Definition

Provides string values for indexing names of common Windows file properties such as System.Title, and also references helper objects that provide indexing names for properties of specific file types (for example video files).

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
Inheritance
Object Platform::Object IInspectable SystemProperties
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Remarks

The scenario for using SystemProperties is when you are defining search indexes or other operations where you want the indexing to use the same name for a property that the system has already defined, as one of the Windows file properties.

Some of the SystemProperties properties return a string name directly. For example, SystemProperties.Title returns the string "System.Title". Some of the SystemProperties properties return a helper object. For example, SystemProperties.Video returns a SystemVideoProperties object. You can then use this object's properties to get the name for a video-specific Windows file property, for example SystemVideoProperties.FrameHeight returns "System.Video.FrameHeight".

Properties

Audio

Gets an object that provides the indexing names of Windows file properties for System.Audio.

Author

Gets the name of the System.Author property (one of the Windows file properties.

Comment

Gets the name of the System.Comment property (one of the Windows file properties.

GPS

Gets an object that provides the indexing names of Windows system file properties for System.GPS.

Image

Gets an object that provides the indexing names of Windows file properties for System.Image.

ItemNameDisplay

Gets the name of the System.ItemNameDisplay property (one of the Windows file properties.

Keywords

Gets the name of the System.Keywords property (one of the Windows file properties.

Media

Gets an object that provides the indexing names of system media file properties such as System.Media.Duration.

Music

Gets an object that provides the indexing names of Windows file properties for System.Music.

Photo

Gets an object that provides the indexing names of Windows file properties for System.Photo.

Rating

Gets the name of the System.Rating property (one of the Windows file properties.

Title

Gets the name of the System.Title property (one of the Windows file properties.

Video

Gets an object that provides the indexing names of Windows file properties for System.Video.

Applies to