語言

IPath.Resolve 方法

定義

多載

名稱 Description
Resolve(IPath)

用這條路徑來解決給定路徑。

Resolve(String)

將給定路徑字串轉換為 aPath,並以方法指定Path的方式對其解析#resolve(Path) resolve。

Resolve(IPath)

用這條路徑來解決給定路徑。

[Android.Runtime.Register("resolve", "(Ljava/nio/file/Path;)Ljava/nio/file/Path;", "GetResolve_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.IPath? Resolve(Java.Nio.FileNio.IPath? other);
[<Android.Runtime.Register("resolve", "(Ljava/nio/file/Path;)Ljava/nio/file/Path;", "GetResolve_Ljava_nio_file_Path_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Resolve : Java.Nio.FileNio.IPath -> Java.Nio.FileNio.IPath

參數

other
IPath

對抗這條路的決心之路

傳回

結果路徑

屬性

備註

用這條路徑來解決給定路徑。

若參數 other 為 #isAbsolute() absolute 路徑,則此方法可輕易返回 other。 若 other 是 空路徑 ,則此方法理所當然地回傳該路徑。 否則,此方法將此路徑視為目錄,並對該路徑解析給定路徑。 在最簡單的情況下,給定路徑沒有 #getRoot root 分量,此時此方法 <em>會<將給定路徑與該路徑連接/em> ,並回傳一個與該路徑相符的結果路徑 #endsWith ends 。 若路徑有根成分,則解析高度依賴實作,因此未被指定。

Java 文件 java.nio.file.Path.resolve(java.nio.file.Path)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於

Resolve(String)

將給定路徑字串轉換為 aPath,並以方法指定Path的方式對其解析#resolve(Path) resolve。

[Android.Runtime.Register("resolve", "(Ljava/lang/String;)Ljava/nio/file/Path;", "GetResolve_Ljava_lang_String_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)]
public Java.Nio.FileNio.IPath? Resolve(string? other);
[<Android.Runtime.Register("resolve", "(Ljava/lang/String;)Ljava/nio/file/Path;", "GetResolve_Ljava_lang_String_Handler:Java.Nio.FileNio.IPathInvoker, Mono.Android, Version=0.0.0.0, Culture=neutral, PublicKeyToken=null", ApiSince=26)>]
abstract member Resolve : string -> Java.Nio.FileNio.IPath

參數

other
String

路徑字串 以對此路徑解析

傳回

結果路徑

屬性

備註

將給定路徑字串轉換為 aPath,並以方法指定Path的方式對其解析#resolve(Path) resolve。 例如,假設名稱分隔符為「/」,路徑代表「foo/bar」,則使用路徑字串gus「」呼叫此方法會得到 Path 「foo/bar/gus」。

Java 文件 java.nio.file.Path.resolve(java.lang.String)。

本頁部分內容為基於 Open Source Project 所創建與分享的作品,並依授權條款所描述的使用進行修改。

適用於