Hinweis
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, sich anzumelden oder das Verzeichnis zu wechseln.
Für den Zugriff auf diese Seite ist eine Autorisierung erforderlich. Sie können versuchen, das Verzeichnis zu wechseln.
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
name
Type: System.StringThe name of the template
description
Type: System.StringA description of the template
metadata
Type: System.StringExtra metadata associated with the template
state
Type: System.StringThis 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
- 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.