Exemplo n.º 1
0
        public override void ExecuteCmdlet()
        {
            PSAllowlistCustomAlertRule rule = new PSAllowlistCustomAlertRule
            {
                IsEnabled       = Enabled,
                AllowlistValues = AllowlistValue,
                RuleType        = Type
            };

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

            WriteObject(rule, enumerateCollection: false);
        }