Class PasswordConnectionInfo
Provides connection information when password authentication method is used.
public class PasswordConnectionInfo : ConnectionInfo, IDisposable
- Inheritance
-
PasswordConnectionInfo
- Implements
- Inherited Members
Constructors
PasswordConnectionInfo(string, int, string, byte[])
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password)
Parameters
hoststringConnection host.
portintConnection port.
usernamestringConnection username.
passwordbyte[]Connection password.
Exceptions
- ArgumentNullException
passwordis null.- ArgumentException
hostis invalid, orusernameis null or contains only whitespace characters.- ArgumentOutOfRangeException
PasswordConnectionInfo(string, int, string, byte[], ProxyTypes, string, int)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort)
Parameters
hoststringConnection host.
portintThe port.
usernamestringConnection username.
passwordbyte[]Connection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
PasswordConnectionInfo(string, int, string, byte[], ProxyTypes, string, int, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)
Parameters
hoststringConnection host.
portintThe port.
usernamestringConnection username.
passwordbyte[]Connection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
PasswordConnectionInfo(string, int, string, byte[], ProxyTypes, string, int, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)
Parameters
hoststringConnection host.
portintThe port.
usernamestringConnection username.
passwordbyte[]Connection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
proxyPasswordstringThe proxy password.
PasswordConnectionInfo(string, int, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, string password)
Parameters
hoststringConnection host.
portintConnection port.
usernamestringConnection username.
passwordstringConnection password.
Exceptions
- ArgumentNullException
passwordis null.- ArgumentException
hostis invalid, orusernameis null or contains only whitespace characters.- ArgumentOutOfRangeException
PasswordConnectionInfo(string, int, string, string, ProxyTypes, string, int)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort)
Parameters
hoststringConnection host.
portintThe port.
usernamestringConnection username.
passwordstringConnection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
PasswordConnectionInfo(string, int, string, string, ProxyTypes, string, int, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, int port, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)
Parameters
hoststringConnection host.
portintThe port.
usernamestringConnection username.
passwordstringConnection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
PasswordConnectionInfo(string, string, byte[])
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password)
Parameters
hoststringConnection host.
usernamestringConnection username.
passwordbyte[]Connection password.
PasswordConnectionInfo(string, string, byte[], ProxyTypes, string, int)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort)
Parameters
hoststringConnection host.
usernamestringConnection username.
passwordbyte[]Connection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
PasswordConnectionInfo(string, string, byte[], ProxyTypes, string, int, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)
Parameters
hoststringConnection host.
usernamestringConnection username.
passwordbyte[]Connection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
PasswordConnectionInfo(string, string, byte[], ProxyTypes, string, int, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, byte[] password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)
Parameters
hoststringConnection host.
usernamestringConnection username.
passwordbyte[]Connection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
proxyPasswordstringThe proxy password.
PasswordConnectionInfo(string, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password)
Parameters
hoststringConnection host.
usernamestringConnection username.
passwordstringConnection password.
Exceptions
- ArgumentNullException
passwordis null.- ArgumentException
hostis invalid, orusernameis null or contains only whitespace characters.
PasswordConnectionInfo(string, string, string, ProxyTypes, string, int)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort)
Parameters
hoststringConnection host.
usernamestringConnection username.
passwordstringConnection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
PasswordConnectionInfo(string, string, string, ProxyTypes, string, int, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername)
Parameters
hoststringConnection host.
usernamestringConnection username.
passwordstringConnection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
PasswordConnectionInfo(string, string, string, ProxyTypes, string, int, string, string)
Initializes a new instance of the PasswordConnectionInfo class.
public PasswordConnectionInfo(string host, string username, string password, ProxyTypes proxyType, string proxyHost, int proxyPort, string proxyUsername, string proxyPassword)
Parameters
hoststringConnection host.
usernamestringConnection username.
passwordstringConnection password.
proxyTypeProxyTypesType of the proxy.
proxyHoststringThe proxy host.
proxyPortintThe proxy port.
proxyUsernamestringThe proxy username.
proxyPasswordstringThe proxy password.
Methods
Dispose()
Performs application-defined tasks associated with freeing, releasing, or resetting unmanaged resources.
public void Dispose()
Dispose(bool)
Releases unmanaged and - optionally - managed resources.
protected virtual void Dispose(bool disposing)
Parameters
disposingbooltrue to release both managed and unmanaged resources; false to release only unmanaged resources.
~PasswordConnectionInfo()
Finalizes an instance of the PasswordConnectionInfo class.
protected ~PasswordConnectionInfo()
Events
PasswordExpired
Occurs when user's password has expired and needs to be changed.
public event EventHandler<AuthenticationPasswordChangeEventArgs> PasswordExpired