IsolatedStorageFile.CreateFile(String) Méthode

Définition

Crée un fichier dans le magasin isolé.

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

Paramètres

path
String

Chemin d’accès relatif du fichier à créer.

Retours

Nouveau fichier de stockage isolé.

Attributs

Exceptions

Le magasin isolé a été supprimé.

- ou -

Le stockage isolé est désactivé.

path est formé de manière incorrecte.

path a la valeur null.

Le répertoire dans path n’existe pas.

Le magasin isolé a été supprimé.

Remarques

Cette méthode équivaut à utiliser le IsolatedStorageFileStream.IsolatedStorageFileStream(String, FileMode, FileAccess, FileShare, IsolatedStorageFile) constructeur .

S’applique à

Voir aussi