public interface IDirectoryLease : IAsyncDisposable Owns access to one local directory until disposed or its presentation closes.
Remarks
Keep this lease alive while C# filesystem operations use its path. Neither the lease nor native access grants are bridge payloads. Presentation close releases access even while application work still uses the path; work that can outlive the presentation, such as accepted recovery, must finish before the presentation's lifetime is stopped.
Properties
DisplayName
string DisplayName { get; } The directory's display name, without its parent path; a filesystem root, such as / or C:\, is named by the root itself. Throws after access is released.
LocalPath
string LocalPath { get; } The exact local path for C# filesystem operations. Throws after access is released; a saved copy does not retain the access grant.