Partilhar via


Include Element

Note

This article applies to Visual Studio 2015. 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 Include element specifies a file that can be located on the supplied include path for insertion into the current file. All symbols and types defined will become part of the compiled result.

Syntax

<Include href="stdidcmd.h" />  

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description
href Required. The path to the header file:

href="stdidcmd.h"
Condition Optional. See Conditional Attributes.

Child Elements

Element Description
None. None.

Parent Elements

Element Description
CommandTable Element Defines all of the elements that represent commands — that is, menu items, menus, toolbars, and combo boxes — that a VSPackage provides to the IDE.

Example

<Include href="PackagePlacements.vsct"/>  

See Also

Visual Studio Command Table (.Vsct) Files