API Reference
Struct
FirewallRuleCreateResult
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
- succeeded System.Boolean
- mode ComputerX.Firewall.FirewallRuleCreateMode
- error System.String
Methods
public static FirewallRuleCreateResult Invalid(String error) #Returns:
FirewallRuleCreateResultCreates an invalid result with the provided error message.
Parameters
- error System.String
Inherited Methods
public override Boolean Equals(Object obj) #Returns:
BooleanInherited from ValueType
Parameters
- obj Object
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.