Windows.Storage Namespace
ファイル、フォルダーおよびアプリケーションの設定を管理します。
メンバー
Windows.Storage名前空間 には次の種類のメンバーが含まれます:
クラス
Windows.Storage名前空間 には次のクラスがあります。
| クラス | 説明 |
|---|---|
| ApplicationData | Provides access to the application data store. |
| ApplicationDataCompositeValue | Represents related app settings that must be serialized and deserialized atomically. |
| ApplicationDataContainer | Represents a container for app settings. |
| ApplicationDataContainerSettings | Provides access to the settings in a settings container. |
| CachedFileManager | Lets apps manage real-time updates to files. |
| DownloadsFolder | Creates files and folders inside the Downloads folder. |
| FileIO | Provides helper methods for reading and writing files that are represented by objects of type IStorageFile. |
| KnownFolders | Provides access to common locations that contain user content. |
| PathIO | Provides helper methods for reading and writing a file using the absolute path or Uniform Resource Identifier (URI) of the file. |
| SetVersionDeferral | Manages a delayed set version operation. |
| SetVersionRequest | Provides data when an app sets the version of the application data in its app data store. |
| StorageFile | Represents a file. Provides information about the file and its content, and ways to manipulate them. |
| StorageFolder | Manipulates folders and their contents, and provides information about them. |
| StorageStreamTransaction | Represents a write transaction for a random-access stream. |
| StreamedFileDataRequest | Represents a sequential-access output stream that indicates a request for the data stream of a StorageFile that was created by calling CreateStreamedFileAsync or ReplaceWithStreamedFileAsync. |
委任
Windows.Storage名前空間 には次の委任があります。
| 委任 | 説明 |
|---|---|
| ApplicationDataSetVersionHandler | Represents a method that handles the request to set the version of the application data in the application data store. |
| StreamedFileDataRequestedHandler | Represents a function that the app defines to produce the data stream of a StorageFile when that StorageFile is first accessed. |
列挙
Windows.Storage名前空間 には次の列挙があります。
| 列挙 | 説明 |
|---|---|
| ApplicationDataCreateDisposition | Specifies creation options for application data containers. |
| ApplicationDataLocality | Specifies the type of an application data store. |
| CreationCollisionOption | Specifies what to do if a file with the desired name already exists in the current folder. |
| FileAccessMode | Specifies the mode used to access a file. |
| FileAttributes | Describes the attributes of system file or folder. |
| NameCollisionOption | Specifies what to do if a file or folder renamed, moved, or copied and there is an existing file or folder with the same name in the desired location. |
| StorageDeleteOption | Specifies whether an item that is deleted is sent to the Recycle Bin or permanently deleted. |
| StorageItemTypes | Describes the kind of item that is represented by an instance of a class that implements IStorageItem (like a StorageFile or StorageFolder object). |
| StreamedFileFailureMode | Indicates the reason that data could not be streamed. |
インターフェイス
Windows.Storage名前空間 は次のインターフェイスを定義します。
| インターフェイス | 説明 |
|---|---|
| IStorageFile | Represents a file. Provides information about the file and its contents, and ways to manipulate them. |
| IStorageFolder | Manipulates folders and their contents, and provides information about them. |
| IStorageItem | Manipulates storage items (files and folders) and their contents, and provides information about them. |
| IStorageItemProperties | Provides access to common and content properties on items (like files and folders). |
| IStreamedFileDataRequest | Represents a sequential-access output stream that indicates a request for the data stream of a StorageFile that was created by calling CreateStreamedFileAsync or ReplaceWithStreamedFileAsync. |
要件
|
サポートされている最小のクライアント | Windows 8 |
|---|---|
|
サポートされている最小のサーバー | Windows Server 2012 |
|
サポートされている最小の電話 | Windows Phone 8 |
|
名前空間 |
|
|
メタデータ |
|