UIApplicationDelegate_Extensions.OpenUrl 方法
定義
重要
部分資訊涉及發行前產品,在發行之前可能會有大幅修改。 Microsoft 對此處提供的資訊,不做任何明確或隱含的瑕疵擔保。
多載
OpenUrl(IUIApplicationDelegate, UIApplication, NSUrl, NSDictionary) |
表示應用程式應該使用 的內容 |
OpenUrl(IUIApplicationDelegate, UIApplication, NSUrl, String, NSObject) |
從指定的 URL 載入資源。 |
OpenUrl(IUIApplicationDelegate, UIApplication, NSUrl, NSDictionary)
表示應用程式應該使用 的內容 options
開啟指定的 url
。
[ObjCRuntime.Introduced(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool OpenUrl (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication app, Foundation.NSUrl url, Foundation.NSDictionary options);
static member OpenUrl : UIKit.IUIApplicationDelegate * UIKit.UIApplication * Foundation.NSUrl * Foundation.NSDictionary -> bool
參數
這個擴充方法運作所在的 實例。
- app
- UIApplication
- url
- NSUrl
- options
- NSDictionary
傳回
- 屬性
適用於
OpenUrl(IUIApplicationDelegate, UIApplication, NSUrl, String, NSObject)
從指定的 URL 載入資源。
[ObjCRuntime.Obsoleted(ObjCRuntime.PlatformName.iOS, 9, 0, ObjCRuntime.PlatformArchitecture.All, "Override 'OpenUrl (UIApplication, NSUrl, NSDictionary)'. The later will be called if both are implemented.")]
[ObjCRuntime.Unavailable(ObjCRuntime.PlatformName.TvOS, ObjCRuntime.PlatformArchitecture.All, null)]
public static bool OpenUrl (this UIKit.IUIApplicationDelegate This, UIKit.UIApplication application, Foundation.NSUrl url, string sourceApplication, Foundation.NSObject annotation);
static member OpenUrl : UIKit.IUIApplicationDelegate * UIKit.UIApplication * Foundation.NSUrl * string * Foundation.NSObject -> bool
參數
這個擴充方法運作所在的 實例。
- application
- UIApplication
此應用程式的參考 (SharedApplication) 。
- sourceApplication
- String
呼叫應用程式的套件組合識別碼。
- annotation
- NSObject
呼叫端應用程式所傳遞的選擇性屬性清單資料。
傳回
- 屬性