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;
true if the file exists, false if the file does not exist or if the file is a directory.
Exception Type | Condition |
---|---|
IOException | Refresh could not initialize the data. |
SecurityException | The caller does not have the required permission. |
NGWS Runtime Security:
FileIOPermissionAccess | Read permission for the target directory. |