共用方式為


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

  • templateId
    Type: System.Guid

    The template descriptor ID.

  • isDefault
    Type: System.Boolean

    true if the process template is the default one.

Return Value

Type: System.Int32
The template usage ID.

.NET Framework Security

See Also

Reference

TeamFoundationProcessTemplateService Class

Microsoft.TeamFoundation.Server.Core Namespace