API Reference
Struct
FirewallRulePlanResult
Result of planning a firewall rule from a FirewallRuleSpec.
Inheritance
- ValueType
- FirewallRulePlanResult
Usage
This type appears in these public API surfaces even when no hand-authored example is attached directly to the page.
Returned or exposed by
- Method FirewallRulePlanner.Plan
- Method FirewallRulePlanResult.Invalid
Constructors
public FirewallRulePlanResult(Boolean isValid, FirewallRulePlan plan, FirewallRuleCreateMode mode, String error) #Initializes a new instance of the FirewallRulePlanResult struct.
Parameters
- isValid System.Boolean
- plan ComputerX.Firewall.FirewallRulePlan
- mode ComputerX.Firewall.FirewallRuleCreateMode
- error System.String
Methods
public static FirewallRulePlanResult Invalid(String error) #Returns:
FirewallRulePlanResultCreates an invalid result with the provided error message.
Parameters
- error System.String
Inherited Methods
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.