TeamFoundationProcessTemplateService.AddProcessTemplateUsage Method
It makes a process template available to the collection. When calling this method, the process template has to be already uploaded.
Namespace: Microsoft.TeamFoundation.Server.Core
Assembly: Microsoft.TeamFoundation.Server.Core (in Microsoft.TeamFoundation.Server.Core.dll)
Syntax
'Declaration
Public Overridable Function AddProcessTemplateUsage ( _
requestContext As TeamFoundationRequestContext, _
templateId As Guid, _
isDefault As Boolean _
) As Integer
public virtual int AddProcessTemplateUsage(
TeamFoundationRequestContext requestContext,
Guid templateId,
bool isDefault
)
public:
virtual int AddProcessTemplateUsage(
TeamFoundationRequestContext^ requestContext,
Guid templateId,
bool isDefault
)
abstract AddProcessTemplateUsage :
requestContext:TeamFoundationRequestContext *
templateId:Guid *
isDefault:bool -> int
override AddProcessTemplateUsage :
requestContext:TeamFoundationRequestContext *
templateId:Guid *
isDefault:bool -> int
public function AddProcessTemplateUsage(
requestContext : TeamFoundationRequestContext,
templateId : Guid,
isDefault : boolean
) : int
Parameters
- requestContext
Type: Microsoft.TeamFoundation.Framework.Server.TeamFoundationRequestContext
templateId
Type: System.GuidThe template descriptor ID.
isDefault
Type: System.Booleantrue if the process template is the default one.
Return Value
Type: System.Int32
The template usage ID.
.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.