ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoPosterProjectModel Interface : ExecuteProject Method |
Set true, if needs map variables to current project even if execution of called project will be failed.
bool ExecuteProject( string pathToProject, IEnumerable<Tuple<string,string>> varibleMapping, bool mapOnBadExist, bool passProjectContext )
The path to project file.
Collection of pair variables name in current project and called project.
Set true, if needs map variables to current project even if execution of called project will be failed.
Set true, if needs map context of current project to called project and back.
// 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);
Target Platforms: Desktop: Windows XP SP3 and older. Server: Windows Server 2003 and older.