編輯

共用方式為


Token element

Defines an individual URL token. For more information about the use of this element, see Work with extended overrides of the manifest.

Add-in type: Task pane

Syntax

<Token Name="string" DefaultValue="string" xsi:type=["LocaleToken" | "RequirementsToken"] ></Token>

Contained in

Can contain

The <Token> element can contain the following child element depending on the add-in type.

Element Content Mail TaskPane
Override No No Yes

Attributes

Attribute Description
DefaultValue Default value for this token if no condition in any child <Override> element matches.
Name Token name. This name is user-defined. The type of the token is determined by the type attribute.
xsi:type Defines the kind of Token. This attribute should be set to one of: "RequirementsToken", or "LocaleToken".

Example

<OfficeApp ...>
  <!-- other elements omitted -->
  <ExtendedOverrides Url="http://contoso.com/addinmetadata/${token.locale}/extended-manifest-overrides.json">
    <Tokens>
      <Token Name="locale" DefaultValue="en-us" xsi:type="LocaleToken">
        <Override Locale="es-*" Value="es-es" />
        <Override Locale="es-mx" Value="es-mx" />
        <Override Locale="fr-*" Value="fr-fr" />
        <Override Locale="ja-jp" Value="ja-jp" />
      </Token>
    <Tokens>
  </ExtendedOverrides>
</OfficeApp>