Share via


IFileVisitor.VisitFileFailed(Object, IOException) Method

Definition

Invoked for a file that could not be visited.

[Android.Runtime.Register("visitFileFailed", "(Ljava/lang/Object;Ljava/io/IOException;)Ljava/nio/file/FileVisitResult;", "GetVisitFileFailed_Ljava_lang_Object_Ljava_io_IOException_Handler:Java.Nio.FileNio.IFileVisitorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.FileVisitResult? VisitFileFailed (Java.Lang.Object? file, Java.IO.IOException? exc);
[<Android.Runtime.Register("visitFileFailed", "(Ljava/lang/Object;Ljava/io/IOException;)Ljava/nio/file/FileVisitResult;", "GetVisitFileFailed_Ljava_lang_Object_Ljava_io_IOException_Handler:Java.Nio.FileNio.IFileVisitorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member VisitFileFailed : Java.Lang.Object * Java.IO.IOException -> Java.Nio.FileNio.FileVisitResult

Parameters

file
Object

a reference to the file

exc
IOException

the I/O exception that prevented the file from being visited

Returns

the visit result

Attributes

Remarks

Invoked for a file that could not be visited. This method is invoked if the file's attributes could not be read, the file is a directory that could not be opened, and other reasons.

Java documentation for java.nio.file.FileVisitor.visitFileFailed(T, java.io.IOException).

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