Esempio n. 1
0
        private String ParameterBindingValidationException(System.Management.Automation.ParameterBindingException e)
        {
            String rtn = "";

            rtn += "Invalid parameter value!" + Environment.NewLine + Environment.NewLine;
            rtn += "You entered an invalid parameter value. Please see the error message below." + Environment.NewLine + Environment.NewLine;
            rtn += "Error Message:" + Environment.NewLine;
            rtn += e.Message.ToString();
            return(rtn);
        }
Esempio n. 2
0
        private String ParameterBindingException(System.Management.Automation.ParameterBindingException e)
        {
            String rtn = "";

            rtn += "Missing Parameters!" + Environment.NewLine + Environment.NewLine;
            rtn += "Please check the command or script file and ensure that the parameters are defined properly." + Environment.NewLine + Environment.NewLine;
            rtn += "Error Message:" + Environment.NewLine;
            rtn += e.Message.ToString();
            return(rtn);
        }