Password Property  
 

Gets and sets the password for the current user.

Syntax

object.Password [= password ]

Remarks

The Password property specifies the password used to authenticate the user. The UserName and Password properties are used together to provide credentials to the server that will authenticate the client session. This property is used as the default value for the Connect method if no password is specified as an argument.

If you are connecting to a server that requires public/private key authentication, your application should set the PrivateKey property to the path of the user's private key. In this case, the Password property can be used to specify the password required to access the private key. If the private key was created without a password, this property should be set to an empty string.

Data Type

String

See Also

PrivateKey Property, UserName Property, Connect Method