This documentation is archived and is not being maintained.

IProcessTemplates.GetTemplateIndex Method

Gets the index of the template with the given name or -1 if the template could not be found.

Namespace:  Microsoft.TeamFoundation.Server
Assembly:  Microsoft.TeamFoundation.Client (in Microsoft.TeamFoundation.Client.dll)

function GetTemplateIndex(
	name : String
) : int

Parameters

name
Type: System.String

The name of the template

Return Value

Type: System.Int32
Index of the template, or

Show: