Expand Minimize

StorageFile.Properties | properties property

Applies to Windows and Windows Phone

Gets an object that provides access to the content-related properties of the file.

Syntax


public:
property StorageItemContentProperties^ Properties { 
   StorageItemContentProperties^ get();
}

Property value

Type: StorageItemContentProperties

The object that provides access to the content-related properties of the file.

Remarks

Note  Properties that are get or set using a property handler that is defined by another app (like Microsoft Word) may not be accessible. Instead, you can try to get these properties using a file query that is backed by the system index. For more information, see QueryOptions.

For more code samples about accessing properties, see the File access sample.

Examples

This example demonstrates how to retrieve content properties or specified properties from a file using StorageFile.Properties.

No code example is currently available or this language may not be supported.

After GetImagePropertiesAsync completes, imageProperties gets a ImageProperties object. Additionally, after RetrievePropertiesAsync completes, extraProperties gets an object that contains the specified properties.

In the example, file contains a StorageFile that represents the file to retrieve properties for.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8.1 [Windows Phone Silverlight 8.1 and Windows Runtime apps]

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

See also

StorageFile

 

 

Show:
© 2014 Microsoft