include element
Includes the contents of a macro or file in the generated output.
Usage
<include
macro = "character_string"
file = "character_string"/>
Attributes
Attribute | Type | Required | Description |
---|---|---|---|
file |
character_string |
No |
The path to the file to include. |
macro |
character_string |
No |
The name of the macro to include. |
Child elements
There are no child elements.
Parent elements
Element | Description |
---|---|
file |
Directs the code generator to generate a file and specifies the output file name. |
Remarks
Either the macro attribute or the file attribute must be specified. Do not specify both attributes.
WsdCodeGen defines a macro named DoNotModify. When this macro is included, the generated code contains a high-visibility comment block that instructs developers not to modify the generated code.
Examples
The following XML shows how to include the DoNotModify macro. This XML can be added to an XML configuration file for WsdCodeGen.
<include macro="DoNotModify">
Element information
Label | Value |
---|---|
Minimum supported system |
Windows Vista |
Can be empty | Yes |