vbMAPI Outlook/MAPI Code Library

ref: vbMAPI_ProfileServices

On this page you'll find:

Class Description

This object is a wrapper for the MAPI IMsgServiceAdmin object.

Property Get Count() As Long

Returns the count of items in this collection.

Property Get Item(ByVal IndexOrName As Variant) As vbMAPI_ProfileService

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

Property Get Session() As vbMAPI_Session

Returns the session object associated with this object.

Property Get Parent() As vbMAPI_Profile

Returns the parent profile object associated with this object.

Function Add(ByVal ServiceName As String, _
              ByVal DisplayName As String, _
              Optional ByVal ShowDialog As Boolean, _
              Optional ByVal ParentWindowHandle As Long) As vbMAPI_ProfileService

Adds a new service to the current profile.