PreviewImage element (Visual Studio templates)
Applies to: Visual Studio Visual 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
Specifies the preview image, as a file name, for the preview image that will appear in either the New Project or Add New Item dialog box.
<VSTemplate> <TemplateData> <PreviewImage>
Syntax
<PreviewImage>"filename"</PreviewImage>
Attributes and elements
The following sections describe attributes, child elements, and parent elements.
Attributes
None.
Child elements
None.
Parent elements
Element | Description |
---|---|
TemplateData | Required element. Categorizes the template and defines how it is displayed in either the New Project or the Add New Item dialog box. |
Text value
A text value is required.
The text must be a string that represents a file name.
Remarks
PreviewImage
is an optional element.