CoreWebView2SaveAsUIResult Enum

Definition

Status of a programmatic Save As call. Indicates the result of the ShowSaveAsUI method.

C#
public enum CoreWebView2SaveAsUIResult
Inheritance
CoreWebView2SaveAsUIResult

Fields

Name Value Description
Success 0

The ShowSaveAsUI method call completed successfully. By default, the system Save As dialog opens. If SuppressDefaultDialog is set to TRUE, the system dialog is skipped.

InvalidPath 1

Could not perform Save As because the destination file path is an invalid path.

        The path is invalid when it is empty, a relative path, or a directory,
        or when the parent path does not exist.
FileAlreadyExists 2

Could not perform Save As because the destination file path already exists and replacing files was not allowed by the AllowReplace property.

KindNotSupported 3

Could not perform Save As because the Kind property selection is not supported due to content MIME type or system limits.

        See the `COREWEBVIEW2_SAVE_AS_KIND` enum for MIME type limits.

        System limits include when the `HTML_ONLY` kind is selected for an error page
        at child mode, or when the `COMPLETE` kind is selected and the WebView is
        running in an App Container.
Cancelled 4

Did not perform Save As because the end user cancelled or the Cancel property on ICoreWebView2SaveAsUIShowingEventArgs was set to TRUE.

Applies to

產品 版本
WebView2 .NET 1.0.2739.15, 1.0.2792.45, 1.0.2849.39, 1.0.2903.40, 1.0.2957.106, 1.0.3065.39
WebView2 .NET Prerelease 1.0.2526, 1.0.2584, 1.0.2646, 1.0.2730, 1.0.2783, 1.0.2839, 1.0.2895, 1.0.2950, 1.0.3079, 1.0.3116