Udostępnij za pośrednictwem


FileSystemProvider.CheckAccess(IPath, AccessMode[]) Method

Definition

Checks the existence, and optionally the accessibility, of a file.

[Android.Runtime.Register("checkAccess", "(Ljava/nio/file/Path;[Ljava/nio/file/AccessMode;)V", "GetCheckAccess_Ljava_nio_file_Path_arrayLjava_nio_file_AccessMode_Handler", ApiSince=26)]
public abstract void CheckAccess (Java.Nio.FileNio.IPath? path, params Java.Nio.FileNio.AccessMode[]? modes);
[<Android.Runtime.Register("checkAccess", "(Ljava/nio/file/Path;[Ljava/nio/file/AccessMode;)V", "GetCheckAccess_Ljava_nio_file_Path_arrayLjava_nio_file_AccessMode_Handler", ApiSince=26)>]
abstract member CheckAccess : Java.Nio.FileNio.IPath * Java.Nio.FileNio.AccessMode[] -> unit

Parameters

path
IPath

the path to the file to check

modes
AccessMode[]

The access modes to check; may have zero elements

Attributes

Remarks

Java documentation for java.nio.file.spi.FileSystemProvider.checkAccess(java.nio.file.Path, java.nio.file.AccessMode).

Portions of this page are modifications based on work created and shared by the Android Open Source Project and used according to terms described in the Creative Commons 2.5 Attribution License.

Applies to