Share via


IPathMatcher.Matches(IPath) Method

Definition

Tells if given path matches this matcher's pattern.

[Android.Runtime.Register("matches", "(Ljava/nio/file/Path;)Z", "GetMatches_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathMatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public bool Matches (Java.Nio.FileNio.IPath? path);
[<Android.Runtime.Register("matches", "(Ljava/nio/file/Path;)Z", "GetMatches_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathMatcherInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Matches : Java.Nio.FileNio.IPath -> bool

Parameters

path
IPath

the path to match

Returns

true if, and only if, the path matches this matcher's pattern

Attributes

Remarks

Tells if given path matches this matcher's pattern.

Java documentation for java.nio.file.PathMatcher.matches(java.nio.file.Path).

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