public override void ExecuteCmdlet() { PSAllowlistCustomAlertRule rule = new PSAllowlistCustomAlertRule { IsEnabled = Enabled, AllowlistValues = AllowlistValue, RuleType = Type }; WriteObject(rule, enumerateCollection: false); }
public override void ExecuteCmdlet() { PSAllowlistCustomAlertRule rule = new PSAllowlistCustomAlertRule { Description = Description, DisplayName = Name, IsEnabled = Enabled, ValueType = ValueType, AllowlistValues = AllowlistValue, RuleType = Type }; WriteObject(rule, enumerateCollection: false); }