ZennoLab Assemblies Documentation
SendWarningToLog Method
See Also  Example Send Feedback
ZennoLab.InterfacesLibrary Assembly > ZennoLab.InterfacesLibrary.ProjectModel Namespace > IZennoPosterProjectModel Interface : SendWarningToLog Method
message
Type: System.String

A warning message for send.

way
Type: System.String

A warning "way" for send. The parameter "way" can be line in code, action or module.

Glossary Item Box

Send a warning message to the log of ZennoPoster.

Syntax

C# 
void SendWarningToLog( 
   string message,
   string way
)

Parameters

message
Type: System.String

A warning message for send.

way
Type: System.String

A warning "way" for send. The parameter "way" can be line in code, action or module.

Remarks

The parameter "way" hasn't restrictions, it should use for specify the location where warning was detected. This parameter can be empty.

Example

The following example demonstrates using SendWarningToLog method.
C#Copy Code
// get gender form profile
ProfileSex gender = project.Profile.Sex;
 
// send warning
if (gender == ProfileSex.Female) project.SendWarningToLog("Oh, hell, it is a woman", "OwnCode C#");
PHPCopy Code
// get gender form profile
$gender = $project->Profile->Sex;
 
// send warning
if ($gender == ProfileSex::Female) $project->SendWarningToLog("Oh, hell, it is a woman", "OwnCode PHP");

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.