Table of Contents

Class WindowsFirewallRules

Namespace
CENTREL.XIA.Configuration.Types
Assembly
CENTREL.XIA.Configuration.Types.dll

Represents the Windows firewall rules configured on a Windows machine.

public class WindowsFirewallRules : BypassSection
Inheritance
WindowsFirewallRules
Inherited Members

Constructors

WindowsFirewallRules()

Initializes a new instance of the CENTREL.XIA.Configuration.Types.WindowsFirewallRules class.

public WindowsFirewallRules()

Properties

GroupPolicyRulesDefined

Gets or sets whether rules exist that have been configured through Group Policy. These rules are not documented by the Windows Firewall API, however are collected by PowerShell.

public BooleanOption GroupPolicyRulesDefined { get; set; }

Property Value

BooleanOption

GroupPolicyRulesDocumented

Gets or sets whether rules configured through Group Policy have been documented. These rules are not documented by the Windows Firewall API, however are collected by PowerShell.

public BooleanOption GroupPolicyRulesDocumented { get; set; }

Property Value

BooleanOption

InboundRules

Gets the inbound rules.

public WindowsFirewallRuleCollection InboundRules { get; }

Property Value

WindowsFirewallRuleCollection

Items

Gets or sets the items in the collection.

public WindowsFirewallRuleCollection Items { get; set; }

Property Value

WindowsFirewallRuleCollection

OutboundRules

Gets the outbound rules.

public WindowsFirewallRuleCollection OutboundRules { get; }

Property Value

WindowsFirewallRuleCollection

Methods

FindRulesBySourceType(WindowsFirewallSettingSourceType)

Gets the Windows Firewall rules with the specified configuration source.

public WindowsFirewallRuleCollection FindRulesBySourceType(WindowsFirewallSettingSourceType sourceType)

Parameters

sourceType WindowsFirewallSettingSourceType

The configuration source for which the rules should be returned.

Returns

WindowsFirewallRuleCollection

A CENTREL.XIA.Configuration.Types.WindowsFirewallRuleCollection configured in the specified source.

ToString()

Returns the Windows firewall rules as a human readable string.

public override string ToString()

Returns

string

The Windows firewall rules as a human readable string.