Freigeben über


TeamFoundationBuildService.DeployTemplateToTfs Method

Deploys the passed in Build Process Template XAML to the File Container Service. It will create a new File Container and Container Item if necessary, then upload the file.

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

Syntax

'Declaration
Public Function DeployTemplateToTfs ( _
    requestContext As TeamFoundationRequestContext, _
    templateXaml As String, _
    serverPath As String, _
    fileName As String _
) As String
public string DeployTemplateToTfs(
    TeamFoundationRequestContext requestContext,
    string templateXaml,
    string serverPath,
    string fileName
)
public:
String^ DeployTemplateToTfs(
    TeamFoundationRequestContext^ requestContext, 
    String^ templateXaml, 
    String^ serverPath, 
    String^ fileName
)
member DeployTemplateToTfs : 
        requestContext:TeamFoundationRequestContext * 
        templateXaml:string * 
        serverPath:string * 
        fileName:string -> string
public function DeployTemplateToTfs(
    requestContext : TeamFoundationRequestContext, 
    templateXaml : String, 
    serverPath : String, 
    fileName : String
) : String

Parameters

  • templateXaml
    Type: System.String

    The XAML of the Build Process Template to upload

Return Value

Type: System.String
The server path from the File Container Service of the uploaded file

.NET Framework Security

See Also

Reference

TeamFoundationBuildService Class

Microsoft.TeamFoundation.Build.Server Namespace