StorageFolder クラス

StorageFolder クラス (Windows.Storage 名前空間)

[APIドキュメント]

public sealed class StorageFolder : IStorageFolder, IStorageFolder2, IStorageItem2, IStorageItemProperties2, IStorageItemPropertiesWithProvider, IStorageFolderQueryOperations

継承:Object → StorageFolder

[toc]
目次

プロパティ

Attributes

@ [APIドキュメント]

public FileAttributes Attributes { get; }

DateCreated

@ [APIドキュメント]

public DateTimeOffset DateCreated { get; }

DisplayName

@ [APIドキュメント]

public string DisplayName { get; }

DisplayType

@ [APIドキュメント]

public string DisplayType { get; }

FolderRelativeId

@ [APIドキュメント]

public string FolderRelativeId { get; }

Name

@ [APIドキュメント]

public string Name { get; }

Path

@ [APIドキュメント]

public string Path { get; }

Properties

@ [APIドキュメント]

public StorageItemContentProperties Properties { get; }

Provider

@ [APIドキュメント]

public StorageProvider Provider { get; }

メソッド

CreateFileAsync

@ [APIドキュメント]

public IAsyncOperation<StorageFile> CreateFileAsync(string desiredName);
public IAsyncOperation<StorageFile> CreateFileAsync(string desiredName, CreationCollisionOption options);

CreateFolderAsync

@ [APIドキュメント]

public IAsyncOperation<StorageFolder> CreateFolderAsync(string desiredName);
public IAsyncOperation<StorageFolder> CreateFolderAsync(string desiredName, CreationCollisionOption options);

DeleteAsync

@ [APIドキュメント]

public IAsyncAction DeleteAsync();
public IAsyncAction DeleteAsync(StorageDeleteOption option);

GetFileAsync

@ [APIドキュメント]

public IAsyncOperation<StorageFile> GetFileAsync(string name);

GetFilesAsync

@ [APIドキュメント]

public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync();
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync(CommonFileQuery query);
public IAsyncOperation<IReadOnlyList<StorageFile>> GetFilesAsync(CommonFileQuery query, uint startIndex, uint maxItemsToRetrieve);

GetFolderAsync

@ [APIドキュメント]

public IAsyncOperation<StorageFolder> GetFolderAsync(string name);

GetFolderFromPathAsync

@ [APIドキュメント]

public static IAsyncOperation<StorageFolder> GetFolderFromPathAsync(string path);

GetFoldersAsync

@ [APIドキュメント]

public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync();
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync(CommonFolderQuery query);
public IAsyncOperation<IReadOnlyList<StorageFolder>> GetFoldersAsync(CommonFolderQuery query, uint startIndex, uint maxItemsToRetrieve);

GetItemsAsync

@ [APIドキュメント]

public IAsyncOperation<IReadOnlyList<IStorageItem>> GetItemsAsync();
public IAsyncOperation<IReadOnlyList<IStorageItem>> GetItemsAsync(uint startIndex, uint maxItemsToRetrieve);

GetParentAsync

@ [APIドキュメント]

public IAsyncOperation<StorageFolder> GetParentAsync();

RenameAsync

@ [APIドキュメント]

public IAsyncAction RenameAsync(string desiredName);
public IAsyncAction RenameAsync(string desiredName, NameCollisionOption option);

目次