ZennoLab Assemblies Documentation
GetLastError Method
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoPosterProjectModel Interface : GetLastError Method

Glossary Item Box

Get a last error after project failed.

Syntax

C# 
LastError GetLastError()

Return Value

Type: ZennoLab.InterfacesLibrary.ProjectModel.LastError

An information of last error.

Example

The following example demonstrates using GetLastError method.
C#Copy Code
var error = project.GetLastError();
var tmp = "";
if(error != null)
    tmp = string.Format("ActionComment: {0}.\r\nActionGroupId: {1}.\r\nActionId: {2}", error.ActionComment, error.ActionGroupId, error.ActionId);
 
return tmp;

Requirements

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

See Also

© 2013 All Rights Reserved.