Nullreferenceexception when adding a GData.Extensions.Reminder to Reminders
Posted
by user283182
on Stack Overflow
See other posts from Stack Overflow
or by user283182
Published on 2010-03-02T10:33:00Z
Indexed on
2010/03/18
7:51 UTC
Read the original article
Hit count: 496
Hello again, I think the title says it all. I'm using
Reminder fifteenMinReminder = new Reminder();
fifteenMinReminder.Minutes = 15;
fifteenMinReminder.Method = Reminder.ReminderMethod.email;
entry.Reminders.Add(fifteenMinReminder);
on a brand new entry (where Reminder and Reminders are Nothing), but I cannot add a reminder using the above code (taken straight from the Google Docs), or set the entry.Reminder to fifteenMinReminder directly either.
What am I doing wrong? I've had no trouble .adding When and Where's to the entry, but the Reminder doesn't want to follow the same pattern.
Any ideas?
© Stack Overflow or respective owner