Setting the authentication type to httpAuthNone
will remove any values set for the UserName,
Password and BearerToken properties.
You should only use an OAuth 2.0 authentication method if
you understand the process of how to request the access token. Obtaining
an access token requires registering your application with the mail
service provider (e.g.: Microsoft or Google), getting a unique
client ID associated with your application and then requesting the
access token using the appropriate scope for the service. Obtaining
the initial token will typically involve interactive confirmation
on the part of the user, requiring they grant permission to your
application to access their mail account.
Changing the value of the BearerToken property will
automatically set the current authentication method to use OAuth 2.0.