TestimoX

API Reference

Struct

FirewallRuleCreateResult

Namespace ComputerX.Firewall
Assembly ComputerX
Base ValueType
Modifiers sealed

Result of creating a firewall rule from a FirewallRuleSpec.

Inheritance

  • ValueType
  • FirewallRuleCreateResult

Constructors

public FirewallRuleCreateResult(Boolean isValid, Boolean succeeded, FirewallRuleCreateMode mode, String error) #

Initializes a new instance of the FirewallRuleCreateResult struct.

Parameters

isValid System.Boolean requiredposition: 0
succeeded System.Boolean requiredposition: 1
mode ComputerX.Firewall.FirewallRuleCreateMode requiredposition: 2
error System.String requiredposition: 3

Methods

public static FirewallRuleCreateResult Invalid(String error) #
Returns: FirewallRuleCreateResult

Creates an invalid result with the provided error message.

Parameters

error System.String requiredposition: 0

Properties

public Boolean IsValid { get; } #

Gets a value indicating whether the specification was valid.

public Boolean Succeeded { get; } #

Gets a value indicating whether the creation succeeded.

public FirewallRuleCreateMode Mode { get; } #

Gets the creation mode selected based on the specification.

public String Error { get; } #

Gets an error message when validation failed or rule creation was not successful.