RDOMAPIFormContainer object

 

RDOMAPIFormContainer object represents a MAPI form container .

 

Returned by:

RDOMAPIFormMgr.OpenDefaultFormContainer

RDOMAPIFormMgr.OpenEnterpriseFormContainer

RDOMAPIFormMgr.OpenFolderFormContainer

RDOMAPIFormMgr.OpenLocalFormContainer

RDOMAPIFormMgr.OpenPersonalFormContainer

RDOMAPIFormMgr.SelectFormContainer

 

The example below enumerates all installed forms in the local form container.

set Session = CreateObject("Redemption.RDOSession")

Session.MAPIOBJECT = Application.Session.MAPIOBJECT

set PersonaFormContainer = Session.MAPIFormMgr.OpenLocalFormContainer

for each FormInfo in PersonaFormContainer

  Debug.Print FormInfo.DisplayName

next

 

Properties

Methods

 


Derived from: IDispatch


Properties


Count Integer, read-only. Returns the number of forms in the container.
 
Name String, read-only. Returns the name of the container.
 

Methods


InstallForm(CfgPathName, OverwriteOnConflict, ShowDialog, ParentWindow)
Installs the MAPI form from the specified CFG file.

CfgPathName - string. Full path to the CFG file.

OverwriteOnConflict - variant, optional. If specified (boolean) determines if the existing form must be overwritten. Defaults to true.

ParentWindow - variant, optional. If specified, the parent window of the dialog. Can be an HWND or an object exposing the IOleWindow interface, such as Explorer or Inspector objects from the Outlook Object Model.

set Session = CreateObject("Redemption.RDOSession")

Session.MAPIOBJECT = Application.Session.MAPIOBJECT

set FormContainer = Session.MAPIFormMgr.OpenLocalFormContainer

FormContainer.InstallForm "c:\temp\TestForm\NOTE.CFG"

 

Item(IndexOrMessageClass)

Returns the RDOMAPIFormInfo object with the specified index (1 through Count) or Name.

IndexOrMessageClass - variant. Can be an integer (1 through Count) or the form name.
 
RemoveForm(MessageClass)

Delete the MAPI form with the specified message class.

MessageClass - string. the message class of the form to be removed.
 
ResolveMessageClass(MsgClass, ExactMatch,)

Resolves the specified message class (e.g. "IPM.Note") and returns the RDOMAPIFormInfo object representing the MAPI form.

MsgClass -string. The message class to resolve

ExactMatch - variant, optional. If true, looks for an exact match. Defaults to false if not specified.