StorageFile.GetBasicPropertiesAsync | getBasicPropertiesAsync method

0 out of 1 rated this helpful - Rate this topic

Gets the basic properties of the current file.

Syntax


storageFile.getBasicPropertiesAsync().done( /* Your success and error handlers */ );

Parameters

This method has no parameters.

Return value

Type: IAsyncOperation<BasicProperties>

When this method completes successfully, it returns the basic properties of the current file as a BasicProperties object.

Remarks

Windows Phone 8

This API is not implemented and will throw an exception if called.

Examples

This example shows you how to access basic properties of a file using the storageFile.getBasicPropertiesAsync method.


storageFile.getBasicPropertiesAsync().then(
    function (basicProperties) {
        var size  = basicProperties.size;
    }
);

You must have a StorageFile object (storageFile in the example) that represents your file in order to use the storageFile.getBasicPropertiesAsync method.

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

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

Metadata

Windows.winmd

See also

StorageFile

 

 

Build date: 2/25/2013

Did you find this helpful?
(1500 characters remaining)
© 2013 Microsoft. All rights reserved.