Exemplo n.º 1
0
 internal RuleSummaryRecord(string ruleId, string ruleName, TagSet tag, RuleHelpInfo info)
 {
     RuleId   = ruleId;
     RuleName = ruleName;
     Tag      = tag?.ToHashtable();
     Info     = info;
 }
Exemplo n.º 2
0
 internal RuleRecord(string ruleId, string ruleName, PSObject targetObject, string targetName, string targetType, TagSet tag, RuleHelpInfo info, Hashtable field, RuleOutcome outcome = RuleOutcome.None, RuleOutcomeReason reason = RuleOutcomeReason.None)
 {
     RuleId        = ruleId;
     RuleName      = ruleName;
     TargetObject  = targetObject;
     TargetName    = targetName;
     TargetType    = targetType;
     Outcome       = outcome;
     OutcomeReason = reason;
     Info          = info;
     if (tag != null)
     {
         Tag = tag.ToHashtable();
     }
     if (field != null && field.Count > 0)
     {
         Field = field;
     }
 }