NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

File.Exists

Determines whether a file exists.

[Visual Basic]
Overridable Public ReadOnly Property Exists As Boolean
[C#]
public bool Exists {override get;}
[C++]
public: __property virtual bool get_Exists();
[JScript]
public function get Exists() : Boolean;

Property Value

true if the file exists, false if the file does not exist or if the file is a directory.

Exceptions

Exception Type Condition
IOException Refresh could not initialize the data.
SecurityException The caller does not have the required permission.

Requirements

NGWS Runtime Security:

FileIOPermissionAccess Read permission for the target directory.

See Also

File Class | File Members | System.IO Namespace