public interface IPickerBackend : IFileDialogs A statically selected file-dialog provider.
Properties
IsAvailable
bool IsAvailable { get; } Whether the provider can currently show dialogs.
SupportsAtomicReplace
bool SupportsAtomicReplace { get; } Whether selected save destinations can be staged and atomically replaced.
SupportsDirectorySelection
bool SupportsDirectorySelection { get; } Whether this backend implements local directory selection.
Remarks
This reports the backend's IFileDialogs.OpenDirectoryAsync implementation before a call; it does not select behavior. Return true exactly when the backend implements that method, and keep the inherited default (false) only when it relies on the default method, which reports PlatformUnavailableReason.BackendUnavailable. PresentationFiles reports the platform.directories.open capability from this value and always calls the backend's method; it throws InvalidOperationException when a backend reporting false returns anything other than Unavailable, after releasing any selected access.
SupportsDocumentAccess
bool SupportsDocumentAccess { get; } Whether this backend implements IFileDialogs.OpenDocumentAsync and IFileDialogs.SaveDocumentAsync.
Remarks
PresentationFiles reports the platform.files.openDocument capability from this value and returns PlatformUnavailableReason.BackendUnavailable from both methods without calling a backend that reports false.
SupportsMultipleDirectorySelection
bool SupportsMultipleDirectorySelection { get; } Whether this backend implements IFileDialogs.OpenDirectoriesAsync.
Remarks
PresentationFiles reports the platform.directories.openMultiple capability from this value and returns PlatformUnavailableReason.BackendUnavailable from OpenDirectoriesAsync without calling a backend that reports false.
SupportsMultipleSelection
bool SupportsMultipleSelection { get; } Whether this backend implements IFileDialogs.OpenFilesAsync.
Remarks
PresentationFiles reports the platform.files.openMultiple capability from this value and returns PlatformUnavailableReason.BackendUnavailable from OpenFilesAsync without calling a backend that reports false.