ReCaptcha.Validate Method

Returns a value that indicates whether the user is validated.

Namespace:  Microsoft.Web.Helpers
Assembly:  Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)

Syntax

'Declaration
Public Shared Function Validate ( _
    privateKey As String _
) As Boolean
'Usage
Dim privateKey As String
Dim returnValue As Boolean

returnValue = ReCaptcha.Validate(privateKey)
public static bool Validate(
    string privateKey
)
public:
static bool Validate(
    String^ privateKey
)
public static function Validate(
    privateKey : String
) : boolean

Parameters

  • privateKey
    Type: System.String
    (Optional if the PrivateKey property is set) The private key for the reCAPTCHA service. The default is nulla null reference (Nothing in Visual Basic).

Return Value

Type: System.Boolean
true if the input validates; otherwise false.

Permissions

  • Medium trust for the immediate caller. This member can be used by partially trusted code.

See Also

Reference

ReCaptcha Class

Microsoft.Web.Helpers Namespace