コード例 #1
0
        /// <summary>
        /// Method to validate the configured arguments for the step type.  The
        /// logic of this method depends on the implementation of the custom step
        /// but typically checks for proper argument names and syntax.
        /// </summary>
        /// <param name="argv">Array of arguments configured for the step type</param>
        /// <returns>Returns 'true' if arguments are valid, 'false' if otherwise</returns>
        public bool ValidateArguments(ref object[] argv)
        {
            string strValue = "";

            if (!StepUtilities.GetArgument(ref argv, m_expectedArgs[0], true, out strValue))
            {
                return(false);
            }
            return(StepUtilities.AreArgumentNamesValid(ref argv, m_expectedArgs));
        }
コード例 #2
0
 /// <summary>
 /// Method to validate the configured arguments for the step type.  The
 /// logic of this method depends on the implementation of the custom step
 /// but typically checks for proper argument names and syntax.
 /// </summary>
 /// <param name="argv">Array of arguments configured for the step type</param>
 /// <returns>Returns 'true' if arguments are valid, 'false' if otherwise</returns>
 public bool ValidateArguments(ref object[] argv)
 {
     return(StepUtilities.AreArgumentNamesValid(ref argv, m_expectedArgs));
 }