Share via


WKWebExtensionMatchPattern.Create Method

Definition

Overloads

Name Description
Create(String)
Create(String, NSError)

Create a new WKWebExtensionMatchPattern for the specified pattern.

Create(String, String, String)
Create(String, String, String, NSError)

Create a new WKWebExtensionMatchPattern for the specified scheme, host and path.

Create(String)

[Foundation.Export("matchPatternWithString:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static WebKit.WKWebExtensionMatchPattern? Create(string string);
[<Foundation.Export("matchPatternWithString:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : string -> WebKit.WKWebExtensionMatchPattern

Parameters

string
String

Returns

Attributes

Applies to

Create(String, NSError)

Create a new WKWebExtensionMatchPattern for the specified pattern.

public static WebKit.WKWebExtensionMatchPattern? Create(string string, out Foundation.NSError? error);
static member Create : string * NSError -> WebKit.WKWebExtensionMatchPattern

Parameters

string
String

The pattern to initialize the new instance with.

error
NSError

The error object, if an error occurred, otherwise null.

Returns

A newly created WKWebExtensionMatchPattern if successful, otherwise null.

Applies to

Create(String, String, String)

[Foundation.Export("matchPatternWithScheme:host:path:")]
[ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)]
public static WebKit.WKWebExtensionMatchPattern? Create(string scheme, string host, string path);
[<Foundation.Export("matchPatternWithScheme:host:path:")>]
[<ObjCRuntime.BindingImpl(ObjCRuntime.BindingImplOptions.GeneratedCode | ObjCRuntime.BindingImplOptions.Optimizable)>]
static member Create : string * string * string -> WebKit.WKWebExtensionMatchPattern

Parameters

scheme
String
host
String
path
String

Returns

Attributes

Applies to

Create(String, String, String, NSError)

Create a new WKWebExtensionMatchPattern for the specified scheme, host and path.

public static WebKit.WKWebExtensionMatchPattern? Create(string scheme, string host, string path, out Foundation.NSError? error);
static member Create : string * string * string * NSError -> WebKit.WKWebExtensionMatchPattern

Parameters

scheme
String

The scheme to initialize the new instance with.

host
String

The host to initialize the new instance with.

path
String

The path to initialize the new instance with.

error
NSError

The error object, if an error occurred, otherwise null.

Returns

A newly created WKWebExtensionMatchPattern if successful, otherwise null.

Applies to