Define Element


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

Defines a symbol name and value pair. This symbol can be evaluated by conditional attributes. For more information, see Conditional Attributes. See also the Symbols Element.


<Define name="Mode" value="Standard" />  

Attributes and Elements

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


Attribute Description
name Required. The name of the symbol:

value Required. The value of the symbol:

Condition Optional. For more information, see Conditional Attributes.

Child Elements


Parent Elements

Element Description
CommandTable Element Defines all the elements that represent commands that a VSPackage provides to the integrated development environment (IDE). For example, menu items, menus, toolbars, and combo boxes.


<Define name="DEMO_UI"/>  
<Define name="MODE" value="Standard"/>  

See Also

Visual Studio Command Table (.Vsct) Files