UtilFirewallRules Property
Gets the current Windows Firewall rules
Namespace: DevCase.Core.Networking.SecurityAssembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
public static ReadOnlyCollection<FirewallRule> Rules { get; }
static member Rules : ReadOnlyCollection<FirewallRule> with get
No code example is currently available or this language may not be supported.
Property Value
ReadOnlyCollectionFirewallRule
The current Windows Firewall rules.
This is a code example.
No code example is currently available or this language may not be supported.
For Each rule As FirewallRule In FirewallUtil.Rules
Console.WriteLine(String.Format("Name: {0}", rule.Name))
Console.WriteLine(String.Format("Description: {0}", rule.Description))
Console.WriteLine(String.Format("Action: {0}", rule.Action.ToString()))
Console.WriteLine(String.Format("Direction: {0}", rule.Direction.ToString()))
Console.WriteLine(String.Format("Protocol: {0}", rule.Protocol.ToString()))
Console.WriteLine(String.Format("Enabled: {0}", rule.Enabled))
Console.WriteLine()
Next
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.
No code example is currently available or this language may not be supported.