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 |
|
|
Metadata |
|
See also
Build date: 2/25/2013