Quantcast
Channel: Xamarin.Forms — Xamarin Community Forums
Viewing all articles
Browse latest Browse all 89864

Azure Mobile Service Query Help

$
0
0

What is wrong wit the following query using Mobile Service. It just throws an exception.

public async Task GetContactAsync(string identifiername)
{

        List<Contact> items = await ContactTable
              .Where(o => o.IdentityProviderName == identifiername)
              .ToListAsync();

        return items.Count == 0 ? null : items[0];
    }

I am getting the following error.

Unhandled Exception:

System.ArgumentNullException: Value cannot be null.
Parameter name: cancel


Viewing all articles
Browse latest Browse all 89864

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>