次の方法で共有


CoreWebView2SaveAsKind Enum

Specifies CoreWebView2SaveAsUIShowingEventArgs.Kind selection options. For HTML documents, we support 3 Save As kinds: HtmlOnly, SingleFile and Complete. For non-HTML documents, you must use Default. MIME types of text/html and application/xhtml+xml are considered HTML documents.

Name Value Description
Default 0x0 Default kind to save non-HTML content. If this kind is selected for an HTML page, the behavior is the same as the HtmlOnly kind.
HtmlOnly 0x1 Save the page as HTML. Only the top-level document is saved, excluding subresources.
SingleFile 0x2 Save the page as MHTML.
Complete 0x3 Save the page as HTML and download the page-related source files (for example: CSS, JavaScript, images, etc.) in a directory with the same filename prefix.

Referenced by