Problem with code sample in documentation

Feb 22, 2015 at 8:09 PM
I did not have any reliable success with the set of if statements provided in the documentation. In addition, the Verify method does not support the await keyword. If you attempt to use the await keyword with the sample code, you get a compilation error message.

Instead, I had more success using a set of if...else if statement statements such as this:
RecaptchaVerificationResult result = Recaptcha1.Verify();

                if (result == RecaptchaVerificationResult.NullOrEmptyCaptchaSolution)
                {
                      lblMessage.Text = "Captcha cannot be empty.";
                }
                else if (result == RecaptchaVerificationResult.Success)
                {
                    lblMessage.Text = "Successfully verified!";
                }
                else if (result == RecaptchaVerificationResult.IncorrectCaptchaSolution)
                {
                    lblMessage.Text = "Incorrect captcha response.";
                }
                else
                {
                    lblMessage.Text = "Some other problem with captcha.";
                }
Jul 1, 2016 at 2:51 PM
Agonizingly close!

RecaptchaVerificationResult result = Recaptcha1.Verify();

"Recaptcha1" is undefined. While "Recaptcha" is defined, it has no 'Verify()' method!

Why is this so difficult?