Поделиться через


<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 add-in.

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

Elements and Attributes

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

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

The formRegion element has the following attribute.

Attribute

Description

name

Required. 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.

Attribute

Description

name

Required. Identifies the form that is associated with the form region.

Example

The following code example illustrates a formRegion element in an application manifest for an Outlook 2007 application-level 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>

See Also

Reference

Application Manifests for Office Solutions

Deployment Manifests for Office Solutions

ClickOnce Application Manifest

Other Resources

Creating Outlook Form Regions