/// <summary> /// Copies the base properties of a rule object. Used by Clone() implementations. /// </summary> /// <param name="Target">The object to copy properties into.</param> internal void CopyBaseProperties(RuleBase Target) { Target.Label = Label; Target.Description = Description; Target.UserOrGroupSid = UserOrGroupSid; Target.Id = Id; Target.Collection = Collection; Target.Action = Action; }
/// <summary> /// Creates a preconfigured rule failure /// </summary> /// <param name="Rule">The rule that failed</param> /// <param name="Error">The exception describing the failure</param> public RuleFailure(RuleBase Rule, Exception Error) { this.Rule = Rule; this.Error = Error; }