TestimoX

API Reference

Struct

FirewallRulePlanResult

Namespace ComputerX.Firewall
Assembly ComputerX
Base ValueType
Modifiers sealed

Result of planning a firewall rule from a FirewallRuleSpec.

Inheritance

  • ValueType
  • FirewallRulePlanResult

Constructors

public FirewallRulePlanResult(Boolean isValid, FirewallRulePlan plan, FirewallRuleCreateMode mode, String error) #

Initializes a new instance of the FirewallRulePlanResult struct.

Parameters

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

Methods

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

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 FirewallRulePlan Plan { get; } #

Gets the planned firewall rule when validation 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.