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. This property is used as the default value for the Authenticate method if no password is specified as an argument.

Refer to the AuthType property for more information on the available authentication methods. If you are using the OAuth 2.0 authentication method, this property should not be set to the user's password. Instead, you should set the BearerToken property to the OAuth 2.0 access token issued by the mail service provider. Note that these access tokens can be much larger than your typical password and are only valid for a limited period of time.

You can use the Password property to specify an OAuth 2.0 bearer token. However, it is recommended that you use the BearerToken property instead of assigning it to this property. It will ensure compatibility with future versions of the control and make it clear in your code you are using an OAuth 2.0 bearer token and not a password. If the AuthType property specifies one of the OAuth 2.0 authentication methods, this property will return the bearer token.

Data Type

String

See Also

BearerToken Property, UserName Property, Authenticate Method, Connect Method