Define Element

 

For the latest documentation on Visual Studio 2017 RC, see Visual Studio 2017 RC Documentation.

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" />  

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

Attributes

AttributeDescription
nameRequired. The name of the symbol:

name="Mode"
valueRequired. The value of the symbol:

value="Standard"
ConditionOptional. For more information, see Conditional Attributes.

Child Elements

None.

Parent Elements

ElementDescription
CommandTable ElementDefines 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"/>  

Visual Studio Command Table (.Vsct) Files

Show: