ReCaptcha.GetHtmlWithOptions Method
Render a reCAPTCHA control and enable the caller to pass additional rendering options.
Namespace: Microsoft.Web.Helpers
Assembly: Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)
Syntax
'Declaration
Public Shared Function GetHtmlWithOptions ( _
publicKey As String, _
options As Object _
) As IHtmlString
'Usage
Dim publicKey As String
Dim options As Object
Dim returnValue As IHtmlString
returnValue = ReCaptcha.GetHtmlWithOptions(publicKey, _
options)
public static IHtmlString GetHtmlWithOptions(
string publicKey,
Object options
)
public:
static IHtmlString^ GetHtmlWithOptions(
String^ publicKey,
Object^ options
)
public static function GetHtmlWithOptions(
publicKey : String,
options : Object
) : 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).
- options
Type: System.Object
(Optional) An anonymous object that specifies additional rendering options.
Return Value
Type: IHtmlString
The markup to render the reCAPTCHA control in page.
Permissions
- Medium trust for the immediate caller. This member can be used by partially trusted code.