ich eine Notiz mit Erinnerung erstellen möchten, ist dies mein Code:Wie eine Notiz mit Attributen „ReminderTime“ erstellen
'Create a note locally.
Dim myNote As New Note()
myNote.Title = "Sample note with Reminder set"
myNote.Content = "Hello, world - this note has a Reminder on it."
myNote.Attributes.ReminderTime = DateTime.Now.ToEdamTimestamp()
'Create the note in the service, in the user's personal, default notebook.
Dim store As ENNoteStoreClient =ENSessionAdvanced.SharedSession.PrimaryNoteStore
Dim resultNote As Note = store.CreateNote(myNote)
aber es hat nicht funktioniert. Der Fehlercode:
myNote.Attributes.ReminderTime = DateTime.Now.ToEdamTimestamp()
Ausführliche Informationen:.
未处理 System.NullReferenceException HResult = -2147467261 Message = 未 将 对象 引用 设置 到 对象 的 实例
Mögliches Duplikat von [Was ist eine NullReferenceException, und wie behebe ich sie?] (Http://stackoverflow.com/questions/4660142/what-is-a-nullreferenceexception-and-how-do-i-fix- es) –
Entschuldigung, ich verstehe dich nicht.Könnten Sie bitte noch einmal im Detail erklären? – 6lilu9
'myNote.Attributes' ist wahrscheinlich null –