NET Password Generator
NumberPosition Property
Example 



KellermanSoftware.NetPasswordGenerator Namespace > PasswordConfig Class : NumberPosition Property
The location where the numeric characters will be placed when generated for a password. Default is Random
Syntax
'Declaration
 
Public Property NumberPosition As Position
'Usage
 
Dim instance As PasswordConfig
Dim value As Position
 
instance.NumberPosition = value
 
value = instance.NumberPosition
public Position NumberPosition {get; set;}
public:
property Position NumberPosition {
   Position get();
   void set (    Position value);
}
Example
//Licensed Mode
//PasswordGenerator generator = new PasswordGenerator("User Name From Receipt", "License Key From Receipt");
 
//Trial Mode
PasswordGenerator generator = new PasswordGenerator();
generator.Config.MinNumbers = 1;
generator.Config.MaxNumbers = 2;
generator.Config.NumberPosition = Position.Center;
 
string 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.MinNumbers = 1
generator.Config.MaxNumbers = 2
generator.Config.NumberPosition = Position.Center
 
Dim password As String = 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