Export (0) Print
Expand All

IProcessTemplates.AddTemplate Method

Note: This API is now obsolete.

This method is obsolete. Please use AddUpdateTemplate instead.

Add a template with the given properties. If a template already exists with the given name, it will be overwritten.

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

[ObsoleteAttribute("Please use AddUpdateTemplate instead")]
int AddTemplate(
	string name,
	string description,
	string metadata,
	string state
)

Parameters

name
Type: System.String

The name of the template

description
Type: System.String

A description of the template

metadata
Type: System.String

Extra metadata associated with the template

state
Type: System.String

This value is no longer used and will be ignored

Return Value

Type: System.Int32
The unique id of the template that was added/updated.

Show:
© 2014 Microsoft