IsolatedStorageFile::CreateFile Method (String^)
.NET Framework (current version)
Creates a file in the isolated store.
Assembly: mscorlib (in mscorlib.dll)
public: [ComVisibleAttribute(false)] IsolatedStorageFileStream^ CreateFile( String^ path )
Parameters
- path
-
Type:
System::String^
The relative path of the file to create.
Return Value
Type: System.IO.IsolatedStorage::IsolatedStorageFileStream^A new isolated storage file.
| Exception | Condition |
|---|---|
| IsolatedStorageException | The isolated store has been removed. -or- Isolated storage is disabled. |
| ArgumentException | path is malformed. |
| ArgumentNullException | path is null. |
| DirectoryNotFoundException | The directory in path does not exist. |
| ObjectDisposedException | The isolated store has been disposed. |
This method is equivalent to using the IsolatedStorageFileStream::IsolatedStorageFileStream(String^, FileMode, FileAccess, FileShare, IsolatedStorageFile^) constructor.
Universal Windows Platform
Available since 10
.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Available since 10
.NET Framework
Available since 4.0
Silverlight
Available since 2.0
Windows Phone Silverlight
Available since 7.0
Show: