Windows.Storage namespace

Applies to Windows and Windows Phone

Provides classes for managing files, folders, and application settings.

For info about how to use the objects in the Windows.Storage namespace, see the following sections.

Members

The Windows.Storage namespace has these types of members:

Classes

The Windows.Storage namespace has these classes.

ClassDescription
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 Manages folders and their contents and provides information about them.
StorageLibrary Lets you add and remove folders from a library like Music or Videos and lets you get a list of folders included in the library.
StorageProvider Contains info about the service that stores files and folders. Files and folders may be stored either by the local file system or by a remote service like Microsoft OneDrive.
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.
SystemAudioProperties A helper object that provides indexing names for Windows audio file properties.
SystemGPSProperties A helper object that provides indexing names for GPS file properties.
SystemImageProperties A helper object that provides indexing names for Windows image file properties.
SystemMediaProperties A helper object that provides indexing names for Windows media file properties.
SystemMusicProperties A helper object that provides indexing names for Windows music file properties.
SystemPhotoProperties A helper object that provides indexing names for Windows photo file properties.
SystemProperties Provides string values for indexing names of common Windows file properties such as System.Title, and also references helper objects that provide indexing names for properties of specific file types (for example video files).
SystemVideoProperties A helper object that provides indexing names for video file properties.

 

Delegates

The Windows.Storage namespace has these delegates.

DelegateDescription
ApplicationDataSetVersionHandler Represents a method that handles the request to set the version of the application data in the application data store.
StreamedFileDataRequestedHandler Represents the method that will stream data into a StorageFile when that file is first accessed.

 

Enumerations

The Windows.Storage namespace has these enumerations.

EnumerationDescription
ApplicationDataCreateDisposition Specifies options for creating application data containers or returning existing containers. This enumeration is used by the ApplicationDataContainer.CreateContainer method.
ApplicationDataLocality Specifies the type of an application data store.
CreationCollisionOption Specifies what to do if a file or folder with the specified name already exists in the current folder when you create a new file or folder.
FileAccessMode Specifies whether to access a file in read-only mode or in read/write mode.
FileAttributes Describes the attributes of a file or folder.
KnownLibraryId Provides values that identify storage libraries.
NameCollisionOption Specifies what to do if a file or folder with the specified name already exists in the current folder when you copy, move, or rename a file or folder.
StorageDeleteOption Specifies whether a deleted item is moved to the Recycle Bin or permanently deleted.
StorageItemTypes Describes whether an item that implements the IStorageItem interface is a file or a folder.
StreamedFileFailureMode Indicates the reason that data could not be streamed.

 

Interfaces

The Windows.Storage namespace defines these interfaces.

InterfaceDescription
IStorageFile Represents a file. Provides information about the file and its contents, and ways to manipulate them.
IStorageFilePropertiesWithAvailability Provides access to the IsAvailable property.
IStorageFolder Manipulates folders and their contents, and provides information about them.
IStorageFolder2 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.
IStorageItem2 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).
IStorageItemProperties2 Provides access to methods that get a scaled image as a thumbnail.
IStorageItemPropertiesWithProvider Provides access to common and content properties on storage items from a particular provider.
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.

 

Requirements

Minimum supported client

Windows 8

Minimum supported server

Windows Server 2012

Minimum supported phone

Windows Phone 8

Namespace

Windows.Storage
Windows::Storage [C++]

Metadata

Windows.winmd

 

 

Show:
© 2014 Microsoft