ProxyConfig.SaveUserPass Method (String, String, Boolean)

Mentalis.org Proxy

Mentalis.org Proxy Documentation

ProxyConfig.SaveUserPass Method (String, String, Boolean)

Saves a username and password combination to the authentication list.

[Visual Basic]Overloads Public Sub SaveUserPass( _
   ByVal username As String, _
   ByVal password As String, _
   ByVal saveData As Boolean _
)
[C#]
public void SaveUserPass(
   string username,
   string password,
   bool saveData
);

Parameters

username
The username to add.
password
The password to add.
saveData
True if the data has to be written to the XML file, false otherwise.

Remarks

If the user already exists in the collection, the old password will be changed to the new one.

The username 'users' is invalid because it is used internally to store the usernames.

The password will be hashed before it is stored in the authentication list.

Exceptions

Exception Type Condition
System.ArgumentNullException username is null -or- password is null.
System.ArgumentException The specified username is invalid.

See Also

ProxyConfig Class | ProxyConfig Members | Org.Mentalis.Proxy Namespace | ProxyConfig.SaveUserPass Overload List