ref: vbMAPI_Profiles

On this page you'll find:

Overview

Equivalent MAPI object: IMAPITable
Equivalent Outlook Redemption object: Redemption.RDOProfiles
Equivalent Outlook Object Model object: None
Parent: vbMAPI_Session

Class Description

This object is a wrapper for the MAPI IMAPITable object. This is a collection of objects representing MAPI profiles that are currently set up. Use For-Each syntax to enumerate the collection.


Property Get Count() As Long

Returns the count of items in this collection.

Property Get Item(ByVal IndexOrName As Variant) As vbMAPI_Profile

Returns the item in the collection corresponding to the provided Index (Long) or Name (String).

Property Get DefaultProfile() As vbMAPI_Profile

Returns the profile name that is designated as the , using the MAPI PR_DEFAULT_PROFILE property.

Property Get Session() As vbMAPI_Session

Returns the session object associated with this object.

Function Add(ByVal ProfileName As String, _
              Optional ByVal AddDefaultServices As Boolean, _
              Optional ByVal ShowDialog As Boolean, _
              Optional ByVal ParentWindowHandle As Long) As vbMAPI_Profile

Creates a new profile with a given name.