<Application-Element> (Office-Entwicklung in Visual Studio)
Das application
-Element des vstav3
-Namespace umschließt die Beschreibung von Office-Projektmappen Die untergeordneten Elemente sind für Anpassungen auf Dokumentebene und für VSTO-Add-Ins unterschiedlich.
Syntax für Anpassungen auf Dokumentebene
<application>
<customization
id
<document
solutionId
/>
</customization>
</application>
Syntax für Add-Ins auf Anwendungsebene
<application>
<customization
id
<appAddin
application
loadBehavior
keyName>
<friendlyName></friendlyName>
<description></description>
<formRegions></formRegions>
</customization>
</application>
Elemente und Attribute
Das application
-Element des vstav3
-Namespace ist der Knoten, der alle anpassungsspezifischen Informationen umschließt, die im vstov4
-Namespace enthalten sind.
Das application
-Element weist keine Attribute auf.
Das application
-Element hat das folgende Element.
Anpassung
Die Rolle des customization
Elements im vstov3
Namespace wird in< customization> Element (Office Development in Visual Studio) definiert.
Anpassungsbeispiel auf Dokumentebene
Beschreibung
Das folgende Codebeispiel veranschaulicht ein application
Element in einer Office-Lösung auf Dokumentebene, die mithilfe von ClickOnce bereitgestellt wird. Dieses Codebeispiel ist Teil eines umfangreicheren Beispiels unter Application Manifests for Office Solutions.
Code
<vstav3:application>
<vstov4:customizations
xmlns:vstov4="urn:schemas-microsoft-com:vsto.v4">
<vstov4:customization>
<vstov4:document
solutionId="73e" />
</vstov4:customization>
</vstov4:customizations>
</vstav3:application>
Beispiel für ein VSTO-Add-In
Beschreibung
Das folgende Codebeispiel veranschaulicht ein application
Element in einer Office-Lösung auf Anwendungsebene, die mithilfe von ClickOnce bereitgestellt wird. Dieses Codebeispiel ist Teil eines umfangreicheren Beispiels unter Application Manifests for Office Solutions.
Code
<vstav3:application>
<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 VSTO 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>
</vstav3:application>