IPath.StartsWith Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Overloads
| StartsWith(IPath) |
Tests if this path starts with the given path. |
| StartsWith(String) |
Tests if this path starts with a |
StartsWith(IPath)
Tests if this path starts with the given path.
[Android.Runtime.Register("startsWith", "(Ljava/nio/file/Path;)Z", "GetStartsWith_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public bool StartsWith (Java.Nio.FileNio.IPath? other);
[<Android.Runtime.Register("startsWith", "(Ljava/nio/file/Path;)Z", "GetStartsWith_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member StartsWith : Java.Nio.FileNio.IPath -> bool
Parameters
- other
- IPath
the given path
Returns
true if this path starts with the given path; otherwise
false
- Attributes
Remarks
Java documentation for java.nio.file.Path.startsWith(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
StartsWith(String)
Tests if this path starts with a Path, constructed by converting
the given path string, in exactly the manner specified by the #startsWith(Path) startsWith(Path) method.
[Android.Runtime.Register("startsWith", "(Ljava/lang/String;)Z", "GetStartsWith_Ljava_lang_String_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public bool StartsWith (string? other);
[<Android.Runtime.Register("startsWith", "(Ljava/lang/String;)Z", "GetStartsWith_Ljava_lang_String_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member StartsWith : string -> bool
Parameters
- other
- String
the given path string
Returns
true if this path starts with the given path; otherwise
false
- Attributes
Remarks
Java documentation for java.nio.file.Path.startsWith(java.lang.String).
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.