CoreWebView2SharedWorker.ScriptUri Property
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.
A string representing the Uri of the script that the worker is executing.
The `scriptUri` is a fully qualified URI, including the scheme, host, and path.
In contrast, the `scriptURL` property of the `Worker` object in the DOM returns the relative
URL of the script being executed by the worker. For more details on DOM API, see the
[DOM API documentation](https://developer.mozilla.org/docs/Web/API/Worker/scriptURL).
Refer to the Host Name Canonicalization for
details on how normalization is performed.
The same process applies to the `scriptURL` when a worker is created from DOM API.
The `scriptUri` property reflects this normalization, ensuring that the URL is standardized. For example,
`HTTPS://EXAMPLE.COM/worker.js` is canonicalized to `https://example.com/worker.js`;
`https://bücher.de/worker.js` is canonicalized to `https://xn--bcher-kva.de/worker.js`.
public string ScriptUri { get; }
member this.ScriptUri : string
Public ReadOnly Property ScriptUri As String