次の方法で共有


<customizations> 要素 (Visual Studio での Office 開発)

vstov4 名前空間の customizations 要素には、各 Office ソリューションのインストールと読み込みに関するすべての情報が格納されます。

ドキュメント レベルのカスタマイズの構文

<customizations>
  <customization
    id
    <document
      solutionId
    />
  </customization>
</customizations>

アプリケーション レベルのアドインの構文

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

要素と属性

customizations 要素には、各 Office ソリューションに関する特定の情報が格納されます。 この要素は vstov4=urn:schemas-microsoft-com:vsto.v4 名前空間に存在する必要があります。 アセンブリの子要素も、この名前空間に配置する必要があります。

customizations 要素には属性がありません。

customizations 要素には、次の子要素があります。

カスタマイズ

必ず指定します。 vstov4 名前空間の customization 要素は、<customization> 要素 (Visual Studio での Office 開発)で定義されます。

ドキュメント レベルのカスタマイズの例

説明

次のコード例は、ドキュメント レベルのカスタマイズの customizations 要素を示しています。

注意

このコード例は、「Office ソリューション用アプリケーション マニフェスト」で紹介されている大きな例の一部です。

コード

    <vstov4:customizations 
      xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4">
      <vstov4:customization>
        <vstov4:document 
          solutionId="73e" />
      </vstov4:customization>
    </vstov4:customizations>

アプリケーション レベルのアドインの例

説明

次のコード例は、アプリケーション レベルのアドインの customizations 要素を示しています。 これは、フォーム領域を含んでいる Outlook アドインです。 このコード例は、「Office ソリューション用アプリケーション マニフェスト」で紹介されている大きな例の一部です。

コード

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

参照

参照

Office ソリューション用アプリケーション マニフェスト

Office ソリューション用配置マニフェスト

ClickOnce アプリケーション マニフェスト