IsolatedStorageFile.CreateFile(String) Metod

Definition

Skapar en fil i det isolerade arkivet.

public:
 System::IO::IsolatedStorage::IsolatedStorageFileStream ^ CreateFile(System::String ^ path);
public System.IO.IsolatedStorage.IsolatedStorageFileStream CreateFile(string path);
[System.Runtime.InteropServices.ComVisible(false)]
public System.IO.IsolatedStorage.IsolatedStorageFileStream CreateFile(string path);
member this.CreateFile : string -> System.IO.IsolatedStorage.IsolatedStorageFileStream
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.CreateFile : string -> System.IO.IsolatedStorage.IsolatedStorageFileStream
Public Function CreateFile (path As String) As IsolatedStorageFileStream

Parametrar

path
String

Den relativa sökvägen till filen som ska skapas.

Returer

En ny isolerad lagringsfil.

Attribut

Undantag

Det isolerade arkivet har tagits bort.

-eller-

Isolerad lagring är inaktiverad.

path är felaktigt.

path är null.

Katalogen i path finns inte.

Det isolerade arkivet har tagits bort.

Kommentarer

Den här metoden motsvarar att använda IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) konstruktorn.

Gäller för

Se även