共用方式為


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

Url 至資源,其中包含 PropertyList 格式的 NSDictionary。

傳回

屬性

適用於