ZennoLab Assemblies Documentation
ExecuteProject Method
Example 
Type: System.String

The path to project file.

Type: System.IEnumerable

Collection of pair variables name in current project and called project.

Type: System.Boolean

Set true, if needs map variables to current project even if execution of called project will be failed.

Type: System.Boolean

Set true, if needs map context of current project to called project and back.

Execute ZennoPoster project.
Syntax

Parameters

pathToProject
Type: System.String

The path to project file.

varibleMapping
Type: System.IEnumerable

Collection of pair variables name in current project and called project.

mapOnBadExist
Type: System.Boolean

Set true, if needs map variables to current project even if execution of called project will be failed.

passProjectContext
Type: System.Boolean

Set true, if needs map context of current project to called project and back.

Example
The following example demonstrates using ExecuteProject method.
// set value for variable a1, make sure that source project contains variable "a1"
project.Variables["a1"].Value = "example";
            
var mapVars = new List<Tuple<string, string>>();
            
// make sure that called project contains variable "b1"
mapVars.Add(new Tuple<string, string>("a1", "b1"));
            
return project.ExecuteProject("example.xmlz", mapVars, true, true);
Requirements

Target Platforms: Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family, Windows Vista, Windows Server 2008 family, Windows Seven

See Also

Reference

IZennoPosterProjectModel Interface
IZennoPosterProjectModel Members
SendErrorToLog Method
SendWarningToLog Method

Send Feedback