NSUrl.CreateFileUrl 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
CreateFileUrl(String, NSUrl) | |
CreateFileUrl(String, Boolean, NSUrl) | |
CreateFileUrl(String[]) |
CreateFileUrl(String, NSUrl)
[Foundation.Export("fileURLWithPath:relativeToURL:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSUrl CreateFileUrl (string path, Foundation.NSUrl relativeToUrl);
static member CreateFileUrl : string * Foundation.NSUrl -> Foundation.NSUrl
參數
- path
- String
傳回
- 屬性
適用於
CreateFileUrl(String, Boolean, NSUrl)
[Foundation.Export("fileURLWithPath:isDirectory:relativeToURL:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 11, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSUrl CreateFileUrl (string path, bool isDir, Foundation.NSUrl relativeToUrl);
static member CreateFileUrl : string * bool * Foundation.NSUrl -> Foundation.NSUrl
參數
- path
- String
- isDir
- Boolean
傳回
- 屬性
適用於
CreateFileUrl(String[])
[Foundation.Export("fileURLWithPathComponents:")]
public static Foundation.NSUrl CreateFileUrl (string[] pathComponents);
static member CreateFileUrl : string[] -> Foundation.NSUrl
參數
- pathComponents
- String[]
傳回
- 屬性