Bewerken

Delen via


<update> element (Office development in Visual Studio)

The update element specifies the interval at which the solution will check for updates.

Syntax

<update
  enabled>
  <expiration
    maximumAge
    unit
  />
</update>

Elements and attributes

The update element is required and is in the vstav3 namespace.

The update element has the following attributes.

Attribute Description
enabled Required. Set enabled to one of the following values:

- true to check for updates.
- false to prevent checking for updates.

The update element has the following child elements.

expiration

The expiration element is required and is in the vstav3 namespace. This element specifies the interval at which the solution checks for updates.

The expiration element has the following attributes.

Attribute Description
maximumAge Required. Set this equal to an integer.
unit Required. Set unit to one of the following values:

- hours
- days
- weeks

Example of always checking for updates

Description

The following code example illustrates an update element that is set to always check for updates in Office solutions.

Code

<vstav3:update enabled="true" />

Example of setting a default update interval

Description

The following code example illustrates an update element in an application manifest for Office solutions. This code example is part of a larger example provided in Application manifests for Office solutions.

Code

<vstav3:update enabled="true">
    <vstav3:expiration maximumAge="7" unit="days" />
</vstav3:update>

See also