ReCaptcha.GetHtml Method

Render a reCAPTCHA control.

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

Syntax

'Declaration
Public Shared Function GetHtml ( _
    publicKey As String, _
    theme As String, _
    language As String, _
    tabIndex As Integer _
) As IHtmlString
'Usage
Dim publicKey As String
Dim theme As String
Dim language As String
Dim tabIndex As Integer
Dim returnValue As IHtmlString

returnValue = ReCaptcha.GetHtml(publicKey, _
    theme, language, tabIndex)
public static IHtmlString GetHtml(
    string publicKey,
    string theme,
    string language,
    int tabIndex
)
public:
static IHtmlString^ GetHtml(
    String^ publicKey, 
    String^ theme, 
    String^ language, 
    int tabIndex
)
public static function GetHtml(
    publicKey : String, 
    theme : String, 
    language : String, 
    tabIndex : int
) : IHtmlString

Parameters

  • publicKey
    Type: System.String
    (Optional if the PublicKey property is set) The public key for the reCAPTCHA service. The default is nulla null reference (Nothing in Visual Basic).
  • theme
    Type: System.String
    (Optional) The name of the theme to use for the control. The default is "red".
  • language
    Type: System.String
    (Optional) The name of the language to use for the instructions in the control. The default is "en".
  • tabIndex
    Type: System.Int32
    (Optional) The tab index value to assign to the control to indicate the order in which the control should receive the focus. The default is 0.

Return Value

Type: IHtmlString
The HTML markup to render the reCAPTCHA control in the page.

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