Freigeben über


IFileVisitor.VisitFile(Object, IBasicFileAttributes) Method

Definition

Invoked for a file in a directory.

[Android.Runtime.Register("visitFile", "(Ljava/lang/Object;Ljava/nio/file/attribute/BasicFileAttributes;)Ljava/nio/file/FileVisitResult;", "GetVisitFile_Ljava_lang_Object_Ljava_nio_file_attribute_BasicFileAttributes_Handler:Java.Nio.FileNio.IFileVisitorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.FileVisitResult? VisitFile (Java.Lang.Object? file, Java.Nio.FileNio.Attributes.IBasicFileAttributes? attrs);
[<Android.Runtime.Register("visitFile", "(Ljava/lang/Object;Ljava/nio/file/attribute/BasicFileAttributes;)Ljava/nio/file/FileVisitResult;", "GetVisitFile_Ljava_lang_Object_Ljava_nio_file_attribute_BasicFileAttributes_Handler:Java.Nio.FileNio.IFileVisitorInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member VisitFile : Java.Lang.Object * Java.Nio.FileNio.Attributes.IBasicFileAttributes -> Java.Nio.FileNio.FileVisitResult

Parameters

file
Object

a reference to the file

attrs
IBasicFileAttributes

the file's basic attributes

Returns

the visit result

Attributes

Remarks

Invoked for a file in a directory.

Java documentation for java.nio.file.FileVisitor.visitFile(T, java.nio.file.attribute.BasicFileAttributes).

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