FirewallClientOptions record

Namespace Runic.Platform.Administration.Windows.Firewall in Runic.Platform.Administration.Windows 0.23.0

public sealed record FirewallClientOptions : IEquatable<FirewallClientOptions>

Inherits or implements IEquatable.

Write behavior of a WindowsFirewallClient.

Constructors

FirewallClientOptions

public FirewallClientOptions()

No documentation.

Properties

WriteWhenLocalPolicyOverridden

public bool WriteWhenLocalPolicyOverridden { get; init; }

Whether create, update and delete write the local policy store when WindowsFirewallClient.GetLocalPolicyStateAsync is not FirewallLocalPolicyState.Effective.

Remarks

False (the default) refuses such writes with an AdministrationErrorCategory.AccessDenied failure, because they would not take effect. True writes the local store anyway, as netsh advfirewall does; the rules apply again once the policy allows local rules. Read WindowsFirewallClient.GetLocalPolicyStateAsync to report the state to the user.