IsolatedStorageFile.FileExists(String) Methode

Definition

Bestimmt, ob der angegebene Pfad auf eine vorhandene Datei im isolierten Speicher verweist.

public:
 bool FileExists(System::String ^ path);
public bool FileExists(string path);
[System.Runtime.InteropServices.ComVisible(false)]
public bool FileExists(string path);
member this.FileExists : string -> bool
[<System.Runtime.InteropServices.ComVisible(false)>]
member this.FileExists : string -> bool
Public Function FileExists (path As String) As Boolean

Parameter

path
String

Der zu testde Pfad und Dateiname.

Gibt zurück

true if path refers to an existing file in the isolated store and is not null; otherwise, false.

Attribute

Ausnahmen

path ist null.

Der isolierte Speicher ist geschlossen.

Der isolierte Speicher wurde gelöscht.

Der isolierte Speicher wurde entfernt.

Gilt für:

Weitere Informationen