WKContentRuleListStore.CompileContentRuleList Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
Compiles the provided list of rules, adds the list to the store with the specified identifier
, and runs a handler that receives the content list and any error that is encountered.
[Foundation.Export("compileContentRuleListForIdentifier:encodedContentRuleList:completionHandler:")]
public virtual void CompileContentRuleList (string identifier, string encodedContentRuleList, Action<WebKit.WKContentRuleList,Foundation.NSError> completionHandler);
abstract member CompileContentRuleList : string * string * Action<WebKit.WKContentRuleList, Foundation.NSError> -> unit
override this.CompileContentRuleList : string * string * Action<WebKit.WKContentRuleList, Foundation.NSError> -> unit
Parameters
- identifier
- String
The identifier for the newly compiled list.
- encodedContentRuleList
- String
JSON source to compile.
- completionHandler
- Action<WKContentRuleList,NSError>
A handler to run after compilation completes or stops with an error.
- Attributes