FirewallRule Class

Provides the information of a Windows Firewall rule.

Definition

Namespace: DevCase.Core.Networking.Security
Assembly: DevCase.net48 (in DevCase.net48.dll) Version: 6.0.0.0 (6.0)
XMLNS for XAML: Not mapped to an xmlns.
[SerializableAttribute]
[XmlRootAttribute("FirewallRule")]
public sealed class FirewallRule
Inheritance
Object    FirewallRule

Constructors

FirewallRule Initializes a new instance of the FirewallRule class.

Properties

Action Gets or sets the action for the firewall rule.
ApplicationName Gets or sets the friendly name of the application to which the rule applies.
Description Gets or sets the description of the rule.
Direction Gets or sets the direction of traffic to which the rule applies.
EdgeTraversal Gets or sets a value indicating whether edge traversal is enabled or disabled for the rule.
Enabled Gets or sets a value indicating whether the rule is enabled.
Grouping Gets or sets the group to which the rule belongs.
IcmpTypesAndCodes Gets or sets the list of ICMP types and codes for the rule.
Interfaces Gets or sets the list of interfaces for which the rule applies.

The interfaces in the list are represented by their friendly name.

InterfaceTypes Gets or sets the list of interface types for which the rule applies.

If more than one interface type is specified, the strings must be separated by a comma.

LocalAddresses Gets or sets the list of local addresses for which the rule applies.

If more than one interface type is specified, the strings must be separated by a comma.

LocalPorts Gets or sets the list of local ports for which the rule applies.

If more than one interface type is specified, the strings must be separated by a comma.

Name Gets or sets the friendly name of the rule.
Profiles Gets or sets the profiles to which the rule belongs.
Protocol Gets or sets IP protocol of the rule.
RemoteAddresses Gets or sets the list of remote addresses for which the rule applies.

If more than one interface type is specified, the strings must be separated by a comma.

RemotePorts Gets or sets the list of remote ports for which the rule applies.

If more than one interface type is specified, the strings must be separated by a comma.

ServiceName Gets or sets the service name property of the application.

Methods

Equals Determines whether the specified object is equal to the current object.
(Inherited from Object)
GetHashCode Serves as the default hash function.
(Inherited from Object)
GetType Gets the Type of the current instance.
(Inherited from Object)
ToString Returns a string that represents the current object.
(Inherited from Object)

Extension Methods

CanConvertTo Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
CanConvertToT Determines whether the source object can be converted to the specified target type.
(Defined by ObjectExtensions)
ConvertToT Converts an object to the specified target type.

If the conversion fails, an exception is thrown.
(Defined by ObjectExtensions)

ConvertToT Converts an object to the specified target type.

If the conversion fails, returns the specified default value.
(Defined by ObjectExtensions)

IsDisposable Determines whether the specified object is a disposable type (i.e., it implements IDisposable interface).
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
Speak Speaks the string representation of the source object by using the operating system integrated text-to-speech synthesizer.
(Defined by ObjectExtensions)
ThrowIfNullTException Throws the specified exception if the source object is null.
(Defined by ObjectExtensions)

See Also