Plateforme Level Extreme
Abonnement
Profil corporatif
Produits & Services
Support
Légal
English
MmBusinessRule method return types
Message
De
09/02/2004 16:25:45
 
 
À
Tous
Information générale
Forum:
ASP.NET
Catégorie:
The Mere Mortals .NET Framework
Titre:
MmBusinessRule method return types
Divers
Thread ID:
00875643
Message ID:
00875643
Vues:
66
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
Suivant
Répondre
Fil
Voir

Click here to load this message in the networking platform