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)
Syntax
'Declaration
Function GetTemplateIndex ( _
    name As String _
) As Integer
int GetTemplateIndex(
    string name
)
int GetTemplateIndex(
    String^ name
)
abstract GetTemplateIndex : 
        name:string -> int
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
.NET Framework Security
- Full trust for the immediate caller. This member cannot be used by partially trusted code. For more information, see Using Libraries from Partially Trusted Code.