Version: 2022.3
public bool IsValid ();

返回

bool True, if this FileHandle represents an open file; otherwise, false.

描述

Reports whether this FileHandle instance is valid.

A FileHandle is invalid if the open operation failed or the FileHandle has been closed. (Creating a new FileHandle object is also invalid.)