<PackageReference Include="System.Security.Permissions" Version="10.0.1" />

FileDialogPermission

Controls the ability to access files or folders through a File dialog box. This class cannot be inherited.
public FileDialogPermissionAccess Access { get; set; }

Gets or sets the permitted access to files.

Initializes a new instance of the FileDialogPermission class with the specified access.

Initializes a new instance of the FileDialogPermission class with either restricted or unrestricted permission, as specified.

public bool IsUnrestricted()

Returns a value indicating whether the current permission is unrestricted.