Share via


<application> Element (2007 System)

Note

Applies to

The information in this topic applies only to the specified Visual Studio Tools for Office projects and versions of Microsoft Office.

For more information, see Features Available by Product Combination.

Project type

  • Document-level projects

  • Application-level projects

Microsoft Office version

  • 2007 Microsoft Office system

The application element of the vstav2 namespace wraps all the customization-specific information. The child elements are different for document-level customizations and application-level add-ins.

Syntax for Document-Level Customizations

<application>
    <customization
        <document
            solutionId
        />
    </customization>
</application>

Syntax for Application-Level Add-Ins

<application>
    <customization
        <appAddin
            application
            loadBehavior
            keyName>
        <friendlyName></friendlyName>
        <description></description>
        <formRegions>
        </formRegions>
    </customization>
</application>

Elements and Attributes

The application element of the vstav2 namespace is the node that wraps all the customization-specific information that is contained in the vstov3 namespace.

The application element has no attributes.

The application element has the following element.

customization

The role of the customization element in the vstov3 namespace is defined in <customization> Element (2007 System).

Remarks

You can manually edit application and deployment manifests in Visual Studio Tools for Office solutions. Application and deployment manifests must be re-signed by the Manifest Generation and Editing Tool (mage.exe and mageui.exe) after the manifests are edited. Sign the application manifest first and the deployment manifest next. For more information, see Manifest Generation and Editing Tool (Mage.exe) and Manifest Generation and Editing Tool, Graphical Client (MageUI.exe).

Document-Level Customization Example

Description

The following code example illustrates an application element in a document-level Visual Studio Tools for Office solution deployed using ClickOnce. This code example is part of a larger example provided in Application Manifests for Office Solutions (2007 System).

Code

<vstav2:application>
    <vstov3:customization
        xmlns:vstov3="urn:schemas-microsoft-com:vsto.v3">
     <vstov3:document
        solutionId="989..." />
    </vstov3:customization>
</vstav2:application>

Application-Level Add-in Example

Description

The following code example illustrates an application element in an application-level Visual Studio Tools for Office solution deployed using ClickOnce. This code example is part of a larger example provided in Application Manifests for Office Solutions (2007 System).

Code

<vstav2:application>
    <vstov3:customization
        xmlns:vstov3="urn:schemas-microsoft-com:vsto.v3">
        <vstov3:appAddIn
            application="Outlook"
            loadBehavior="3"
            keyName="OutlookAddIn1">
            <vstov3:friendlyName>
                OutlookAddIn1
            </vstov3:friendlyName>
            <vstov3:description>OutlookAddIn1
                - Outlook add-in created with Visual Studio 
                Tools for Office</vstov3:description>
            <vstov3:formRegions>
                <vstov3:formRegion
                    name="OutlookAddIn1.FormRegion1">
                    <vstov3:messageClass name="IPM.Note" />
                    <vstov3:messageClass name="IPM.Contact" />
                    <vstov3:messageClass name="IPM.Appointment" />
                </vstov3:formRegion>
            </vstov3:formRegions>
        </vstov3:appAddIn>
    </vstov3:customization>
</vstav2:application>

See Also

Reference

Application Manifests for Office Solutions (2007 System)

Deployment Manifests for Office Solutions (2007 System)

ClickOnce Application Manifest