NSDictionary.FromUrl 方法

定义

重载

FromUrl(NSUrl, NSError)
FromUrl(NSUrl)

根据位于指定 URL 处的 PropertyList 的内容创建新字典。

FromUrl(NSUrl, NSError)

[Foundation.Export("dictionaryWithContentsOfURL:error:")]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.WatchOS, 4, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.TvOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.MacOSX, 10, 13, ObjCRuntime.PlatformArchitecture.All, null)]
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 11, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static Foundation.NSDictionary<Foundation.NSString,Foundation.NSObject> FromUrl (Foundation.NSUrl url, out Foundation.NSError error);
static member FromUrl : Foundation.NSUrl *  -> Foundation.NSDictionary<Foundation.NSString, Foundation.NSObject>

参数

url
NSUrl
error
NSError

返回

属性

适用于

FromUrl(NSUrl)

根据位于指定 URL 处的 PropertyList 的内容创建新字典。

[Foundation.Export("dictionaryWithContentsOfURL:")]
public static Foundation.NSDictionary FromUrl (Foundation.NSUrl url);
static member FromUrl : Foundation.NSUrl -> Foundation.NSDictionary

参数

url
NSUrl

包含 PropertyList 格式的 NSDictionary 的资源的 URL。

返回

属性

适用于