NET Password Generator
WordStyle Property
Example 



KellermanSoftware.NetPasswordGenerator Namespace > PasswordConfig Class : WordStyle Property
The style of words to generate for a password. Default is PopularWords
Syntax
'Declaration
 
Public Property WordStyle As WordStyle
'Usage
 
Dim instance As PasswordConfig
Dim value As WordStyle
 
instance.WordStyle = value
 
value = instance.WordStyle
public WordStyle WordStyle {get; set;}
public:
property WordStyle WordStyle {
   WordStyle get();
   void set (    WordStyle value);
}
Example
//Licensed Mode
//PasswordGenerator generator = new PasswordGenerator("User Name From Receipt", "License Key From Receipt");
 
//Trial Mode
PasswordGenerator generator = new PasswordGenerator();
 
generator.Config.WordStyle = WordStyle.PopularWords;
string password = generator.Generate();
Console.WriteLine(password);
 
generator.Config.WordStyle = WordStyle.ReadableNonsense;
password = generator.Generate();
Console.WriteLine(password);
 
generator.Config.WordStyle = WordStyle.Unreadable;
password = generator.Generate();
Console.WriteLine(password);
'Licensed Mode
'PasswordGenerator generator = new PasswordGenerator("User Name From Receipt", "License Key From Receipt");
 
'Trial Mode
Dim generator As New PasswordGenerator()
 
generator.Config.WordStyle = WordStyle.PopularWords
Dim password As String = generator.Generate()
Console.WriteLine(password)
 
generator.Config.WordStyle = WordStyle.ReadableNonsense
password = generator.Generate()
Console.WriteLine(password)
 
generator.Config.WordStyle = WordStyle.Unreadable
password = generator.Generate()
Console.WriteLine(password)
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