Sdílet prostřednictvím


IFileFilter.Accept(File) Method

Definition

Tests whether or not the specified abstract pathname should be included in a pathname list.

[Android.Runtime.Register("accept", "(Ljava/io/File;)Z", "GetAccept_Ljava_io_File_Handler:Java.IO.IFileFilterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")]
public bool Accept (Java.IO.File? pathname);
[<Android.Runtime.Register("accept", "(Ljava/io/File;)Z", "GetAccept_Ljava_io_File_Handler:Java.IO.IFileFilterInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null")>]
abstract member Accept : Java.IO.File -> bool

Parameters

pathname
File

The abstract pathname to be tested

Returns

true if and only if pathname should be included

Attributes

Remarks

Tests whether or not the specified abstract pathname should be included in a pathname list.

Java documentation for java.io.FileFilter.accept(java.io.File).

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