Dans mon webservice (WCF) j'ai cette fonctionRemplissez e.Error dans webservice silverlight
[OperationContract]
public ChooseViewData GetNcs(FilterArgument filter, int dossiersId, int usersId,
string token)
{
SessionInfo info = Tokens.CheckToken(usersId, token);
if (info.HasError)
{
//return null;
}
}
Quand je vous appelle cette fonction dans mon application silverlight, je veux savoir s'il y avait une erreur.
void client_GetNcsCompleted(object sender, GetNcsCompletedEventArgs e)
{
if (e.Error == null)
{
}
}
Ma question est, comment puis-je remplir le e.error? Lorsque la connexion n'est pas réussie dans mon service, je veux lancer une exception ..