NativeFileSelection record

Namespace Runic.Platform.Runtime in Runic.Platform.Runtime 0.23.0

public sealed record NativeFileSelection : IEquatable<NativeFileSelection>

Inherits or implements IEquatable.

An acquired native selection, confined to C# provider infrastructure.

Parameters

Path

The acquired local path, never a bridge payload.

Access

Optional access grant transferred to the resulting lease.

AllowsSiblingReplacement

Whether access permits same-directory staging and replacement.

Constructors

NativeFileSelection

public NativeFileSelection(string Path, IAsyncDisposable? Access, bool AllowsSiblingReplacement)

An acquired native selection, confined to C# provider infrastructure.

Parameters

Path

The acquired local path, never a bridge payload.

Access

Optional access grant transferred to the resulting lease.

AllowsSiblingReplacement

Whether access permits same-directory staging and replacement.

Properties

Access

public IAsyncDisposable? Access { get; init; }

Optional access grant transferred to the resulting lease.

AllowsSiblingReplacement

public bool AllowsSiblingReplacement { get; init; }

Whether access permits same-directory staging and replacement.

Location

public NativeFileLocation Location { get; init; }

The filesystem view that holds the path. It selects how a save stages and replaces the file.

Path

public string Path { get; init; }

The acquired local path, never a bridge payload.

SelectedFilter

public FileDialogFilter? SelectedFilter { get; init; }

The request's filter that was active when the user confirmed the dialog, or null when the dialog does not report it. The first selection of a dialog carries it; a filter that is not one of the request's is ignored.