Delen via


SetFileNameResult Enum

Definition

Indicates the result of a call to the FileSavePickerUI.TrySetFileName method.

public enum class SetFileNameResult
/// [Windows.Foundation.Metadata.ContractVersion(Windows.Foundation.UniversalApiContract, 65536)]
enum class SetFileNameResult
[Windows.Foundation.Metadata.ContractVersion(typeof(Windows.Foundation.UniversalApiContract), 65536)]
public enum SetFileNameResult
var value = Windows.Storage.Pickers.Provider.SetFileNameResult.succeeded
Public Enum SetFileNameResult
Inheritance
SetFileNameResult
Attributes

Windows requirements

Device family
Windows 10 (introduced in 10.0.10240.0 - for Xbox, see UWP features that aren't yet supported on Xbox)
API contract
Windows.Foundation.UniversalApiContract (introduced in v1.0)

Fields

Name Value Description
Succeeded 0

The file name and extension were updated successfully.

NotAllowed 1

The file name and extension were not updated because the extension wasn't one of the AllowedFileTypes.

Unavailable 2

The file name and extension were not updated because the file picker UI wasn't available. The file picker UI is only available while the user is interacting with your app.

Applies to

See also