Jaa


Mapi.logon(String, String, Int32) Method

Definition

Logs on to the mail system by using the specified profile and password.

public:
 virtual int logon(System::String ^ _profileName, System::String ^ _password, int _flags);
public virtual int logon (string _profileName, string _password, int _flags);
abstract member logon : string * string * int -> int
override this.logon : string * string * int -> int
Public Overridable Function logon (_profileName As String, _password As String, _flags As Integer) As Integer

Parameters

_profileName
String

A list of flags. The valid flags are as follows:

_password
String

A list of flags. The valid flags are as follows:

_flags
Int32

A list of flags. The valid flags are as follows:

Returns

The status #SUCCESS_SUCCESS if the logon succeeded; otherwise, an error code, which can be found in the #MAPI macro.

Remarks

An easy and common way to log on is to specify the #MAPI_USE_DEFAULT flag, which logs on by using the default profile.

Applies to