Skip to content

Latest commit

 

History

History
57 lines (43 loc) · 2.16 KB

File metadata and controls

57 lines (43 loc) · 2.16 KB
title TemplateID Element (Visual Studio Templates)
description Learn about the TemplateID element and how it specifies an identifier for an item template that is categorized into a group of item templates by the TemplateGroupID element.
ms.date 11/04/2016
ms.subservice general-ide
ms.topic reference
f1_keywords
helpviewer_keywords
<TemplateID> element [Visual Studio Templates]
TemplateID element [Visual Studio Templates]
author tinaschrepfer
ms.author tinali
manager mijacobs

TemplateID Element (Visual Studio Templates)

Specifies an identifier for an item template that is categorized into a group of item templates by the TemplateGroupID element.

<VSTemplate> <TemplateData> <TemplateID>

Syntax

<TemplateID> ... </TemplateID>

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 displays in either the New Project or the Add New Item dialog box.

Text Value

A string that represents an identifier for an item template that is categorized into a group of item templates by the TemplateGroupID element.

Remarks

TemplateID is an optional element.

If a .vstemplate file omits the TemplateID element, then the Name element is used as the identifier for the template.

The value of the TemplateID element is used along with project system registration (HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\VisualStudio\11.0\Projects\) to filter templates that appear in the Add New Item dialog box.

See also