次の方法で共有


MailApp complexType (apps for Office 1.1)

Defines an app activated according to rules and displayed adjacent to the selected item to enhance the reading experience.

Introduced in

apps for Office Manifest Schema Reference v1.0

Type information

Namespace

https://schemas.microsoft.com/office/appforoffice/1.1

Schema file

OfficeAppManifestv1.1.xsd

Extension base

None

Definition

<xs:complexType name="MailApp">
    <xs:complexContent>
        <xs:extension base="OfficeApp">
            <xs:sequence>
                <xs:element name="Requirements" type="MailAppRequirements" minOccurs="1" maxOccurs="1"></xs:element>
                <xs:element name="FormSettings" type="FormSettings" minOccurs="1" maxOccurs="1"></xs:element>
                <xs:element name="Permissions" minOccurs="0" maxOccurs="1">
                    <xs:simpleType>
                        <xs:restriction base="xs:string">
                            <xs:enumeration value="Restricted" />
                            <xs:enumeration value="ReadItem" />
                            <xs:enumeration value="ReadWriteItem" />
                            <xs:enumeration value="ReadWriteMailbox" />
                        </xs:restriction>
                    </xs:simpleType>
                </xs:element>
                <xs:element name="Rule" type="Rule" minOccurs="1" maxOccurs="1"></xs:element>
                <xs:element name="DisableEntityHighlighting" type="xs:boolean" minOccurs="0" maxOccurs="1"></xs:element>
                <xs:any id="MailAppVersionOverrides" namespace="https://schemas.microsoft.com/office/mailappversionoverrides" processContents="lax" minOccurs="0" maxOccurs="1"></xs:any>
                <xs:any id="MailAppSignature" namespace="http://www.w3.org/2000/09/xmldsig#" processContents="lax" minOccurs="0" maxOccurs="1"></xs:any>
            </xs:sequence>
        </xs:extension>
    </xs:complexContent>
</xs:complexType>

Elements and attributes

スキーマで sequence、minOccurs、maxOccurs、choice などの具体的な要件が定義されている場合は、定義のセクションを参照してください。

Child elements

Element

Type

Description

DisableEntityHighlighting

xs:boolean

Specifies whether entity highlighting should be turned off for this mail app.

FormSettings

FormSettings

Specifies control settings that apply when displaying this mail app.

Permissions

xs:string

Permission that applies to all mail apps, enables the ItemIs and ItemHasKnownEntity activation rules, enables use of the Settings object and a subset of the app JavaScript API for Office.

Applies to the selected item and includes the Restricted permission and enables the mail app to use all the well-known entities and regular expression activation rules, to read all properties, and to write custom properties.

Applies to the selected item and includes the ReadItem permission and enables the mail app to use all the well-known entities and regular expression activation rules, to read all properties, to write propeties in compose forms, and to write custom properties.

Includes all of the ReadWriteItem permissions and also enables the mail app to use the makeEWSRequestAsync method to read and write all properties of any item in the user's mailbox.

Controls the subset of the API that may be available to this mail app at runtime; the developer should request permissions based on "least privilege".

Requirements

MailAppRequirements

Specificies the minimum set of Office.js requirements that the app for Office needs to activate

Rule

Rule

Specifies the activation rule that should be evaluated for this mail app.

Attributes

None.

注釈

You can specify an optional element to support a digital signature to sign the manifest when you submit the app to the Office ストア. The element is part of the namespace http://www.w3.org/2000/09/xmldsig\#, and the schema for the element follows the processing rules and syntax as specified by XML Signature Syntax and Processing (Second Edition).

The following is an example of a signature.

  <Signature xmlns="http://www.w3.org/2000/09/xmldsig#">
    <SignedInfo>
      <CanonicalizationMethod Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
      <SignatureMethod Algorithm="http://www.w3.org/2000/09/xmldsig#rsa-sha1" />
      <Reference URI="">
        <Transforms>
          <Transform Algorithm="http://www.w3.org/2000/09/xmldsig#enveloped-signature" />
          <Transform Algorithm="http://www.w3.org/TR/2001/REC-xml-c14n-20010315" />
        </Transforms>
        <DigestMethod Algorithm="http://www.w3.org/2000/09/xmldsig#sha1" />
        <DigestValue>0ZTx59WcgK4NKW4TKQNlQaHOYx8=</DigestValue>
      </Reference>
    </SignedInfo>
    <SignatureValue>Encrypted data</SignatureValue>
    <KeyInfo>
      <KeyValue>
        <RSAKeyValue>
          <Modulus>Encrypted data</Modulus>
          <Exponent>AQAB</Exponent>
        </RSAKeyValue>
      </KeyValue>
      <X509Data>
        <X509Certificate>Encrypted data</X509Certificate>
      </X509Data>
      <X509Data>
        <X509Certificate>Encrypted data</X509Certificate>
      </X509Data>
      <X509Data>
        <X509Certificate>Encrypted data</X509Certificate>
      </X509Data>
    </KeyInfo>
    <Object id="ts-countersig">
      <X509Data>
        <X509Certificate>Encrypted data</X509Certificate>
      </X509Data>
      <X509Data>
        <X509Certificate>Encrypted data</X509Certificate>
      </X509Data>
      <CounterSignature 
        xmlns="https://schemas.microsoft.com/xmldsig/timestamp/2003"
        ts-format="cms-timestamp-message">Encrypted data</CounterSignature>
    </Object>
  </Signature>

Additional resources

See the following links for more information