BotDetect ASP Classic CAPTCHA COM API Reference (BotDetect v3.0; deprecated)
Core Captcha functionality (drawing Captcha images and generating Captcha sounds) in the BotDetect ASP Captcha component is implemented as a COM component with the BotDetect.Captcha.3
ProgId. The BotDetect Classic ASP Captcha library uses the COM Captcha interface internally, and you don't have to worry about it unless you are implementing a different client for the COM component.
BotDetect.COM.ICaptchaComponent
The COM interface declaration used by the Captcha COM component.
BotDetect.COM.ICaptchaComponent Interface Reference |
|
string GenerateCode- string locale
- int codeLength
- int codeStyle
- string customCharset
- string bannedSequences
|
Generate a random Captcha code with the given parameter values.
locale is the locale string
codeLength is the number of characters in the Captcha code
codeStyle is the numeric representation of the Captcha code style, i.e. the algorithm used to generate Captcha codes from default pre-defined locale character sets
customCharset is the user-defined character set used for Captcha code generation; should be a comma-separated list of characters to use for all Captcha codes (both alpha and numeric, setting a custom charset ignores the code style setting)
bannedSequences is the optional list of comma-separated character sequences which will be filtered out of the randomly generated Captcha codes, used for example for swear-word filtering
|
|
string GenerateImage- string code
- string locale
- int imageStyle
- int imageWidth
- int imageHeight
- int imageFormat
- string customLightColor
- string customDarkColor
|
Generate a random Captcha image with the given parameter values.
code is the Captcha code
locale is the locale string
imageStyle is the numeric representation of the Captcha image style, i.e. the algorithm used to render Captcha codes in images
imageWidth is the width of the generated Captcha image, in pixels
imageHeight is the height of the generated Captcha image, in pixels
imageFormat is the numeric representation of the image format in which the Captcha image will be generated
customLightColor is the optional custom dark color point, which modifies the color palette used for Captcha image drawing. Should be a Html color, i.e. specified either by name ("Red" ) or hex value ("#f00" or "#ff0000" )
customDarkColor is the optional custom light color point, which modifies the color palette used for Captcha image drawing. Should be a Html color, i.e. specified either by name ("Red" ) or hex value ("#f00" or "#ff0000" )
|
|
string GenerateSound- string code
- string locale
- int soundStyle
- int soundFormat
- string soundPackageFolder
|
Generate a random Captcha sound with the given parameter values.
code is the Captcha code
locale is the locale string
soundStyle is the numeric representation of the Captcha sound style, i.e. the algorithm used to pronounce Captcha codes in sounds
soundFormat is the numeric representation of the audio format in which the Captcha sound file will be generated
soundPackageFolder is the file-system location of the folder containing BotDetect pronunciation sound packages; the client application using the COM component should have read access privileges for this location
|
|
bool IsSoundAvailable- string locale
- string soundPackageFolder
|
Check is the pronunciation sound package required for the given locale available in the sound packages folder.
locale is the locale string
soundPackageFolder is the file-system location of the folder containing BotDetect pronunciation sound packages; the client application using the COM component should have read access privileges for this location
|
|
string DefaultCaptchaHelpPage |
Get the default Captcha help page Url for the given locale.
locale is the locale string
|
|
string DefaultCaptchaImageTooltip |
Get the default Captcha image tooltip for the given locale.
locale is the locale string
|
|
bool IsFree |
License helper, telling whether the Captcha COM component instance is created by the free BotDetect version. Used to check whether to display the code sample Free version information or not. |
|
string ControlInfo |
Debugging helper, returning the assembly version of the Captcha COM component |
[back to the top of the page]
BotDetect.COM.ComCaptcha
The main .NET class implementing the BotDetect COM interface. Registered for COM interop using the BotDetect.Captcha.3
ProgId.
Implements
BotDetect.COM.ICaptchaComponent
BotDetect.COM.ComCaptcha Interface Reference |
|
string GenerateCode- string locale
- int codeLength
- int codeStyle
- string customCharset
- string bannedSequences
|
Generate a random Captcha code with the given parameter values.
locale is the locale string
codeLength is the number of characters in the Captcha code
codeStyle is the numeric representation of the Captcha code style, i.e. the algorithm used to generate Captcha codes from default pre-defined locale character sets
customCharset is the user-defined character set used for Captcha code generation; should be a comma-separated list of characters to use for all Captcha codes (both alpha and numeric, setting a custom charset ignores the code style setting)
bannedSequences is the optional list of comma-separated character sequences which will be filtered out of the randomly generated Captcha codes, used for example for swear-word filtering
|
|
string GenerateImage- string code
- string locale
- int imageStyle
- int imageWidth
- int imageHeight
- int imageFormat
- string customLightColor
- string customDarkColor
|
Generate a random Captcha image with the given parameter values.
code is the Captcha code
locale is the locale string
imageStyle is the numeric representation of the Captcha image style, i.e. the algorithm used to render Captcha codes in images
imageWidth is the width of the generated Captcha image, in pixels
imageHeight is the height of the generated Captcha image, in pixels
imageFormat is the numeric representation of the image format in which the Captcha image will be generated
customLightColor is the optional custom dark color point, which modifies the color palette used for Captcha image drawing. Should be a Html color, i.e. specified either by name ("Red" ) or hex value ("#f00" or "#ff0000" )
customDarkColor is the optional custom light color point, which modifies the color palette used for Captcha image drawing. Should be a Html color, i.e. specified either by name ("Red" ) or hex value ("#f00" or "#ff0000" )
|
|
string GenerateSound- string code
- string locale
- int soundStyle
- int soundFormat
- string soundPackageFolder
|
Generate a random Captcha sound with the given parameter values.
code is the Captcha code
locale is the locale string
soundStyle is the numeric representation of the Captcha sound style, i.e. the algorithm used to pronounce Captcha codes in sounds
soundFormat is the numeric representation of the audio format in which the Captcha sound file will be generated
soundPackageFolder is the file-system location of the folder containing BotDetect pronunciation sound packages; the client application using the COM component should have read access privileges for this location
|
|
bool IsSoundAvailable- string locale
- string soundPackageFolder
|
Check is the pronunciation sound package required for the given locale available in the sound packages folder.
locale is the locale string
soundPackageFolder is the file-system location of the folder containing BotDetect pronunciation sound packages; the client application using the COM component should have read access privileges for this location
|
|
string DefaultCaptchaHelpPage |
Get the default Captcha help page Url for the given locale.
locale is the locale string
|
|
string DefaultCaptchaImageTooltip |
Get the default Captcha image tooltip for the given locale.
locale is the locale string
|
|
bool IsFree |
License helper, telling whether the Captcha COM component instance is created by the free BotDetect version. Used to check whether to display the code sample Free version information or not. |
|
string ControlInfo |
Debugging helper, returning the assembly version of the Captcha COM component |
[back to the top of the page]
Please Note
The information on this page is out of date and applies to a deprecated version of BotDetect™ CAPTCHA (v3.0).
An up-to-date equivalent page for the latest BotDetect Captcha release (v4) is BotDetect v4 Captcha documentation index.
General information about the major improvements in the current BotDetect release can be found at the What's New in BotDetect v4.0 page.