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

Das entryPointsCollection -Element des vstav3 -Namespace enthält alle entryPoints -Elemente, die Office-Projektmappen zugeordnet sind.

Syntax

<entryPointsCollection>
  <entryPoints>
    <entryPoint>
    </entryPoint>
    <entryPoint>
    </entryPoint>
    <entryPoint>
    </entryPoint>
  </entryPoints>
</entryPointsCollection>

Elemente und Attribute

Das entryPointsCollection -Element ist erforderlich und befindet sich im vstav3 -Namespace. Untergeordnete Elemente müssen sich ebenfalls in diesem Namespace befinden. In einem Anwendungsmanifest ist nur ein entryPointsCollection -Element definiert.

Das entryPointsCollection -Element weist keine Attribute auf.

entryPointsCollection hat die folgenden Elemente:

entryPoints

Erforderlich. Die Rolle des entryPoints Elements im vstav3 Namespace wird im <EntryPoints-Element> (Office-Entwicklung in Visual Studio) definiert.

Anpassungsbeispiel auf Dokumentebene

Beschreibung

Das folgende Codebeispiel veranschaulicht das Element in einem Anwendungsmanifest für eine Lösung auf Dokumentebene, die entryPointsCollection mithilfe von ClickOnce bereitgestellt wird. Dieses Codebeispiel ist Teil eines größeren Beispiels, das in Anwendungsmanifesten für Office-Lösungen bereitgestellt wird.

Code

<vstav3:entryPointsCollection>
    <vstav3:entryPoints>
      <vstav3:entryPoint
        class="ContosoExcelWorkbook.ThisWorkbook">
        <assemblyIdentity
          name="ContosoExcelWorkbook"
          version="1.0.0.0"
          language="neutral"
          processorArchitecture="msil" />
      </vstav3:entryPoint>
      <vstav3:entryPoint
        class="ContosoExcelWorkbook.Sheet1">
        <assemblyIdentity
          name="ContosoExcelWorkbook"
          version="1.0.0.0"
          language="neutral"
          processorArchitecture="msil" />
      </vstav3:entryPoint>
      <vstav3:entryPoint
        class="ContosoExcelWorkbook.Sheet2">
        <assemblyIdentity
          name="ContosoExcelWorkbook"
          version="1.0.0.0"
          language="neutral"
          processorArchitecture="msil" />
      </vstav3:entryPoint>
      <vstav3:entryPoint
        class="ContosoExcelWorkbook.Sheet3">
        <assemblyIdentity
          name="ContosoExcelWorkbook"
          version="1.0.0.0"
          language="neutral"
          processorArchitecture="msil" />
      </vstav3:entryPoint>
    </vstav3:entryPoints>
  </vstav3:entryPointsCollection>

Beispiel für ein VSTO-Add-In

Beschreibung

Das folgende Codebeispiel veranschaulicht ein entryPointsCollection Element in einem Anwendungsmanifest für eine mithilfe von ClickOnce bereitgestellte Lösung auf Anwendungsebene. Dieses Codebeispiel ist Teil eines größeren Beispiels, das in Anwendungsmanifesten für Office-Lösungen bereitgestellt wird.

Code

<vstav3:entryPointsCollection>
    <vstav3:entryPoints>
      <vstav3:entryPoint
        class="ContosoOutlookAddIn.ThisAddIn">
        <assemblyIdentity
          name="ContosoOutlookAddIn"
          version="1.0.0.0"
          language="neutral"
          processorArchitecture="msil" />
      </vstav3:entryPoint>
    </vstav3:entryPoints>
  </vstav3:entryPointsCollection>

Beispiel für die Bereitstellung mit mehreren Projekten

Beschreibung

Das folgende Codebeispiel veranschaulicht ein entryPointsCollection -Element in einem Anwendungsmanifest für eine Bereitstellung mit mehreren Projekten mit zwei Office-Projektmappen. Dieses Codebeispiel ist Teil eines größeren Beispiels, das in Anwendungsmanifesten für Office-Lösungen bereitgestellt wird.

Code

<vstav3:entryPointsCollection>
      <vstav3:entryPoints
        id="ContosoExcel">
        <vstav3:entryPoint
          class="ContosoExcelWorkbook.ThisWorkbook">
          <assemblyIdentity
            name="ContosoExcelWorkbook"
            version="1.0.0.0"
            language="neutral"
            processorArchitecture="msil" />
        </vstav3:entryPoint>
        <vstav3:entryPoint
          class="ContosoExcelWorkbook.Sheet1">
          <assemblyIdentity
            name="ContosoExcelWorkbook"
            version="1.0.0.0"
            language="neutral"
            processorArchitecture="msil" />
        </vstav3:entryPoint>
        <vstav3:entryPoint
          class="ContosoExcelWorkbook.Sheet2">
          <assemblyIdentity
            name="ContosoExcelWorkbook"
            version="1.0.0.0"
            language="neutral"
            processorArchitecture="msil" />
        </vstav3:entryPoint>
        <vstav3:entryPoint
          class="ContosoExcelWorkbook.Sheet3">
          <assemblyIdentity
            name="ContosoExcelWorkbook"
            version="1.0.0.0"
            language="neutral"
            processorArchitecture="msil" />
        </vstav3:entryPoint>
      </vstav3:entryPoints>
      <vstav3:entryPoints
        id="ContosoOutlook">
        <vstav3:entryPoint
          class="ContosoOutlookAddIn.ThisAddIn">
          <assemblyIdentity
            name="ContosoOutlookAddIn"
            version="1.0.0.0"
            language="neutral"
            processorArchitecture="msil" />
        </vstav3:entryPoint>
      </vstav3:entryPoints>
    </vstav3:entryPointsCollection>

Siehe auch