Expand Minimize

StorageFile.GetBasicPropertiesAsync | getBasicPropertiesAsync method

Applies to Windows and Windows Phone

Gets the basic properties of the current file.

Syntax


Public Function GetBasicPropertiesAsync() As IAsyncOperation(Of BasicProperties)

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.

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.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