NET Password Generator
VerifyConfiguration Method (PasswordConfig)
Example 



KellermanSoftware.NetPasswordGenerator Namespace > PasswordConfig Class : VerifyConfiguration Method
Verify that the configuration is correct, if not throw an exception
Syntax
'Declaration
 
Public Sub VerifyConfiguration() 
'Usage
 
Dim instance As PasswordConfig
 
instance.VerifyConfiguration()
public void VerifyConfiguration()
public:
void VerifyConfiguration(); 
Exceptions
ExceptionDescription
Occurs when there is an error with the password configuration
Example
//Licensed Mode
//PasswordGenerator generator = new PasswordGenerator("User Name From Receipt", "License Key From Receipt");
 
//Trial Mode
PasswordGenerator generator = new PasswordGenerator();
 
try
{
    generator.Config.VerifyConfiguration();
}
catch (PasswordConfigException pcex)
{
    Console.WriteLine(pcex.Message);
}
'Licensed Mode
'PasswordGenerator generator = new PasswordGenerator("User Name From Receipt", "License Key From Receipt");
 
'Trial Mode
Dim generator As New PasswordGenerator()
 
Try
    generator.Config.VerifyConfiguration()
Catch pcex As PasswordConfigException
    Console.WriteLine(pcex.Message)
End Try
Requirements

Target Platforms: Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

See Also

Reference

PasswordConfig Class
PasswordConfig Members