Password Property (MAPISession Control)

       

Specifies the account password associated with the UserName property.

Syntax

object.Password[ = value]

The Password property syntax has these parts:

Part Description
object An object expression that evaluates to an object in the Applies To list.
value A string expression specifying the account password

Remarks

On computers that have Microsoft Exchange or Microsoft Outlook installed, the UserName property sets the Profile to be used when establishing a session. Profiles include the actual user name and password to be used, making the Password property unused. New profiles are set up by clicking on the Mail and Fax icon in the Windows Control Panel.

On computers that have Microsoft Mail installed, an empty string in this property indicates that a sign-on dialog box with an empty password field should be generated. The default is an empty string.

Data Type

String