<customizations>-Element (Office-Entwicklung in Visual Studio)

Das customizations-Element des vstov4-Namespace enthält alle Informationen zum Installieren und Laden der einzelnen Office-Projektmappen.

Syntax für Anpassungen auf Dokumentebene

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

Syntax für Add-Ins auf Anwendungsebene

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

Elemente und Attribute

Das customizations-Element enthält spezifische Informationen zu den einzelnen Office-Projektmappen.Dieses Element muss sich im folgenden Namespace befinden: vstov4=urn:schemas-microsoft-com:vsto.v4.Untergeordnete Elemente der Assembly müssen sich auch in diesem Namespace befinden.

Das customizations-Element besitzt keine Attribute.

Das customizations-Element verfügt über das folgende untergeordnete Element.

Dd465308.collapse_all(de-de,VS.110).gifAnpassung

Erforderlich.Das customization-Element im vstov4-Namespace wird in <customization>-Element (Office-Entwicklung in Visual Studio) definiert.

Beispiel einer Anpassung auf Dokumentebene

Dd465308.collapse_all(de-de,VS.110).gifBeschreibung

Im folgenden Codebeispiel wird das customizations-Element für eine Anpassung auf Dokumentebene veranschaulicht.

HinweisHinweis

Dieses Codebeispiel ist Teil eines umfangreicheren Beispiels, das Sie im Thema Anwendungsmanifeste für Office-Projektmappen finden.

Dd465308.collapse_all(de-de,VS.110).gifCode

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

Beispiel eines Add-Ins auf Anwendungsebene

Dd465308.collapse_all(de-de,VS.110).gifBeschreibung

Im folgenden Codebeispiel wird das customizations-Element für ein Add-In auf Anwendungsebene veranschaulicht.Dabei handelt es sich um ein Outlook-Add-In mit Formularbereichen.Dieses Codebeispiel ist Teil eines umfangreicheren Beispiels, das Sie im Thema Anwendungsmanifeste für Office-Projektmappen finden.

Dd465308.collapse_all(de-de,VS.110).gifCode

    <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>

Siehe auch

Referenz

Anwendungsmanifeste für Office-Projektmappen

Bereitstellungsmanifeste für Office-Projektmappen

ClickOnce-Anwendungsmanifest