ReCaptcha.PrivateKey Property
Gets or sets a private key for the reCAPTCHA service.
Namespace: Microsoft.Web.Helpers
Assembly: Microsoft.Web.Helpers (in Microsoft.Web.Helpers.dll)
Syntax
'Declaration
Public Shared Property PrivateKey As String
Get
Set
'Usage
Dim value As String
value = ReCaptcha.PrivateKey
ReCaptcha.PrivateKey = value
public static string PrivateKey { get; set; }
public:
static property String^ PrivateKey {
String^ get ();
void set (String^ value);
}
static function get PrivateKey () : String
static function set PrivateKey (value : String)
Property Value
Type: System.String
The private key.
Remarks
You use the reCAPTCHA private key by passing it as a parameter to the Validate(String) method. Alternatively, because the private key is a static value, you can set the PrivateKey property in the _AppStart.cshtml page of your Web site.
Note
You can obtain a private key by signing up for the reCAPTCHA service (https://www.recaptcha.net).
Permissions
- Medium trust for the immediate caller. This member can be used by partially trusted code.