Files.Exists(IPath, LinkOption[]) 方法
定义
重要
一些信息与预发行产品相关,相应产品在发行之前可能会进行重大修改。 对于此处提供的信息,Microsoft 不作任何明示或暗示的担保。
测试文件是否存在。
[Android.Runtime.Register("exists", "(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z", "", ApiSince=26)]
public static bool Exists(Java.Nio.FileNio.IPath? path, params Java.Nio.FileNio.LinkOption[]? options);
[<Android.Runtime.Register("exists", "(Ljava/nio/file/Path;[Ljava/nio/file/LinkOption;)Z", "", ApiSince=26)>]
static member Exists : Java.Nio.FileNio.IPath * Java.Nio.FileNio.LinkOption[] -> bool
参数
- path
- IPath
要测试的文件的路径
- options
- LinkOption[]
指示如何处理符号链接的选项。
返回
- 特性
注解
Java文档java.nio.file.Files.exists(java.nio.file.Path, java.nio.file.LinkOption)。
本页的某些部分是根据 创建和共享的工作进行的修改,并根据 许可证中所述的条款使用。