public TryGetStorageFile ( string path, IStorageFile &storageFile ) : bool | ||
path | string | |
storageFile | IStorageFile | |
return | bool |
public bool TryGetStorageFile(string path, out IStorageFile storageFile)
{
FileInfo sourceImagePath;
if (!TryFindPhysicalFile(path, out sourceImagePath))
{
storageFile = null;
return false;
}
var eTag = m_fileInfoETagCalculator.CalculateETag( sourceImagePath );
storageFile = new StorageFile( sourceImagePath, eTag );
return true;
}