Share via


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)

Syntax

'Declaration
<ObsoleteAttribute("Please use AddUpdateTemplate instead")> _
Function AddTemplate ( _
    name As String, _
    description As String, _
    metadata As String, _
    state As String _
) As Integer
[ObsoleteAttribute("Please use AddUpdateTemplate instead")]
int AddTemplate(
    string name,
    string description,
    string metadata,
    string state
)
[ObsoleteAttribute(L"Please use AddUpdateTemplate instead")]
int AddTemplate(
    String^ name, 
    String^ description, 
    String^ metadata, 
    String^ state
)
[<ObsoleteAttribute("Please use AddUpdateTemplate instead")>]
abstract AddTemplate : 
        name:string * 
        description:string * 
        metadata:string * 
        state:string -> int
function AddTemplate(
    name : String, 
    description : String, 
    metadata : String, 
    state : String
) : int

Parameters

  • 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.

.NET Framework Security

See Also

Reference

IProcessTemplates Interface

Microsoft.TeamFoundation.Server Namespace