Partajați prin


<document> element (Office development in Visual Studio)

Applies to: yesVisual Studio noVisual Studio for Mac

Note

This article applies to Visual Studio 2017. If you're looking for the latest Visual Studio documentation, see Visual Studio documentation. We recommend upgrading to the latest version of Visual Studio. Download it here

The document element of the vstov4 namespace stores customization-specific information for document-level customizations.

Syntax

<document solutionId />

Elements and attributes

Required only for document-level customizations. The document element is in the vstov4 namespace. The document element has the following attributes.

Attribute Description
solutionId Required. The GUID used by the Visual Studio Tools for Office runtime to uniquely identify a document-level solution. This value is stored as the _AssemblyLocation custom document property. For more information, see Custom document properties overview.

document has no child elements.

Document-level customization example

Description

The following code example illustrates the document element in a document-level Office solution deployed by using ClickOnce. This code example is part of a larger example provided in Application manifests for Office solutions.

Code

<vstov4:document
  solutionId="73e" />

See also