WKWebView.LoadHtmlString Method

Definition

Overloads

LoadHtmlString(NSString, NSUrl)

Loads the specified HTML as the contents of the Web page.

LoadHtmlString(String, NSUrl)

LoadHtmlString(NSString, NSUrl)

Loads the specified HTML as the contents of the Web page.

[Foundation.Export("loadHTMLString:baseURL:")]
public virtual WebKit.WKNavigation LoadHtmlString (Foundation.NSString htmlString, Foundation.NSUrl baseUrl);
abstract member LoadHtmlString : Foundation.NSString * Foundation.NSUrl -> WebKit.WKNavigation
override this.LoadHtmlString : Foundation.NSString * Foundation.NSUrl -> WebKit.WKNavigation

Parameters

htmlString
NSString

The string to use as the contents of the webpage.

baseUrl
NSUrl

A URL that is used to resolve relative URLs within the document.

This parameter can be null.

Returns

A new navigation.

Attributes

Remarks

Applies to

LoadHtmlString(String, NSUrl)

public WebKit.WKNavigation LoadHtmlString (string htmlString, Foundation.NSUrl baseUrl);
member this.LoadHtmlString : string * Foundation.NSUrl -> WebKit.WKNavigation

Parameters

htmlString
String
baseUrl
NSUrl

Returns

Applies to