<formRegion> Element

<formRegion> Element (Office Development in Visual Studio)

 

The formRegion element of the vstov4 namespace identifies a Microsoft Office Outlook form region that is associated with an VSTO Add-in.

<formRegion
  name>
  <messageClass
    name/>
</formRegion>

The formRegion element of the vstov4 namespace identifies a form region that is associated with an Outlook VSTO Add-in. It is required only for Outlook VSTO Add-ins that include form regions.

There can be multiple formRegion elements defined inside a formRegions element for a single VSTO Add-in.

The formRegion element has the following attribute.

AttributeDescription
nameRequired. Identifies the form region name.

The formRegion element has the following child elements.

messageClass

The messageClass element identifies the Outlook form that is associated with the form region.

The messageClass element has the following attribute.

AttributeDescription
nameRequired. Identifies the form that is associated with the form region.

The following code example illustrates a formRegion element in an application manifest for an Outlook VSTO Add-in deployed using ClickOnce. There are three message classes associated with this one form region. This code example is part of a larger example provided in Application Manifests for Office Solutions.

<vstov4:formRegion
    name="OutlookAddIn1.FormRegion1">
  <vstov4:messageClass name="IPM.Note" />
  <vstov4:messageClass name="IPM.Contact" />
  <vstov4:messageClass name="IPM.Appointment" />
</vstov4:formRegion>

Creating Outlook Form Regions
Application Manifests for Office Solutions
Deployment Manifests for Office Solutions
ClickOnce Application Manifest

Show:
© 2016 Microsoft