StorageFolder クラス (Windows.Storage 名前空間)
public sealed class StorageFolder : IStorageFolder, IStorageFolder2, IStorageItem2, IStorageItemProperties2, IStorageItemPropertiesWithProvider, IStorageFolderQueryOperations
継承:Object → StorageFolder
[toc]プロパティ
Attributes
public FileAttributes Attributes { get; }
DateCreated
public DateTimeOffset DateCreated { get; }
DisplayName
public string DisplayName { get; }
DisplayType
public string DisplayType { get; }
FolderRelativeId
public string FolderRelativeId { get; }
Name
public string Name { get; }
Path
public string Path { get; }
Properties
public StorageItemContentProperties Properties { get; }
Provider
public StorageProvider Provider { get; }
メソッド
CreateFileAsync
public IAsyncOperation<StorageFile> CreateFileAsync(string desiredName);
public IAsyncOperation<StorageFile> CreateFileAsync(string desiredName, CreationCollisionOption options);
CreateFolderAsync
public IAsyncOperation<StorageFolder> CreateFolderAsync(string desiredName);
public IAsyncOperation<StorageFolder> CreateFolderAsync(string desiredName, CreationCollisionOption options);
DeleteAsync
public IAsyncAction DeleteAsync();
public IAsyncAction DeleteAsync(StorageDeleteOption option);
GetFileAsync
public IAsyncOperation<StorageFile> GetFileAsync(string name);
GetFilesAsync
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync();
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync(CommonFileQuery query);
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync(CommonFileQuery query, uint startIndex, uint maxItemsToRetrieve);
GetFolderAsync
public IAsyncOperation<StorageFolder> GetFolderAsync(string name);
GetFolderFromPathAsync
public static IAsyncOperation<StorageFolder> GetFolderFromPathAsync(string path);
GetFoldersAsync
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync();
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync(CommonFolderQuery query);
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync(CommonFolderQuery query, uint startIndex, uint maxItemsToRetrieve);
GetItemsAsync
public IAsyncOperation<IReadOnlyList<IStorageItem>> GetItemsAsync();
public IAsyncOperation<IReadOnlyList<IStorageItem>> GetItemsAsync(uint startIndex, uint maxItemsToRetrieve);
GetParentAsync
public IAsyncOperation<StorageFolder> GetParentAsync();
RenameAsync
public IAsyncAction RenameAsync(string desiredName);
public IAsyncAction RenameAsync(string desiredName, NameCollisionOption option);