internal static void CheckValidCustomPropertyName(string name)
 {
     string errmsg;
     if (!CustomPropertyHelper.IsValidName(name, out errmsg))
     {
         string msg = string.Format("Invalid Property Name: \"{0}\". {1}", name, errmsg);
         throw new System.ArgumentException(msg);
     }
 }
        internal static void CheckValidCustomPropertyName(string name)
        {
            string errmsg;

            if (!CustomPropertyHelper.IsValidName(name, out errmsg))
            {
                string msg = $"Invalid Property Name: \"{name}\". {errmsg}";
                throw new AutomationException(msg);
            }
        }
        public static bool IsValidName(string name)
        {
            string errmsg;

            return(CustomPropertyHelper.IsValidName(name, out errmsg));
        }