UtilFirewallAddRule Method
Asds a rule to Windows firewall.
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.
No code example is currently available or this language may not be supported.
Parameters
- rule FirewallRule
-
A FirewallRule object containing the rule information.
This is a code example.
No code example is currently available or this language may not be supported.
Dim rule As New FirewallRule
With rule
.Name = "Test rule"
.Description = "Rule description"
.Action = FirewallRuleAction.Block
.Direction = FirewallRuleDirection.Inbound
.Protocol = FirewallProtocol.Tcp
.Enabled = True
End With
FirewallUtil.AddRule(rule)
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.
Exception
|
Windows Firewall service (MpsSvc) is not running.
|