Level Extreme platform
Subscription
Corporate profile
Products & Services
Support
Legal
Français
MmBusinessRule method return types
Message
From
09/02/2004 16:25:45
 
 
To
All
General information
Forum:
ASP.NET
Category:
The Mere Mortals .NET Framework
Title:
MmBusinessRule method return types
Miscellaneous
Thread ID:
00875643
Message ID:
00875643
Views:
64
In the developers guide, the examples for BizRul objects all have their internal methods returning strings, as well as adding broken rules, etc.
public string ValidateShipName(string shipName)
{
	string message = null;

	if (shipName == "")
	{
		message = "Must specify a ship name";
		this.AddErrorProviderBrokenRule("ShipName",
			message);
	}
	return message;
}
My question is why does this method return a string? The message is taken care of through AddErrorProviderBrokenRule(), and I don't see anything calling this that uses the string it returns... In my own BizRule objects, I the internal validation methods are void vs string, and they appear to be working just fine...

Thanks for any input.

-Nate
Next
Reply
Map
View

Click here to load this message in the networking platform