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[]
返回
- 属性