Microsoft.Protocols.TestSuites.MS_SITESS.MS_SITESSAdapter.ExportWorkflowTemplate C# (CSharp) Méthode

ExportWorkflowTemplate() public méthode

This operation is used to export a workflow template as a site solution to the specified document library.
public ExportWorkflowTemplate ( string solutionFileName, string title, string description, string workflowTemplateName, string destinationListUrl ) : string
solutionFileName string The name of the solution file that will be created.
title string The name of the solution.
description string Detailed information that describes the solution.
workflowTemplateName string The name of the workflow template that is to be exported.
destinationListUrl string The server-relative URL of the document library in which the solution file needs to be created.
Résultat string
        public string ExportWorkflowTemplate(string solutionFileName, string title, string description, string workflowTemplateName, string destinationListUrl)
        {
            // Check whether ExportWorkflowTemplate operation succeeds.
            string exportWorkflowTemResult = null;
            exportWorkflowTemResult = this.service.ExportWorkflowTemplate(solutionFileName, title, description, workflowTemplateName, destinationListUrl);

            // Legal Uri should not contain space but '%20' instead. 
            if (exportWorkflowTemResult.Contains(" "))
            {
                exportWorkflowTemResult = exportWorkflowTemResult.Replace(" ", "%20");
            }

            // Verify the ExportWorkflowTemplateResponse structure.
            this.VerifyExportWorkflowTemplate(exportWorkflowTemResult);

            return exportWorkflowTemResult;
        }