编译错误:Method 'BackgroundTasks.Reminder.getCourse(BackgroundTasks.Course[])' has parameter 'Courses' which is an array. In the Windows Runtime, the contents of array parameters must be either readable or writable. Please apply either System.Runtime.InteropServices.WindowsRuntime.ReadOnlyArrayAttribute or System.Runtime.InteropServices.WindowsRuntime.WriteOnlyArrayAttribute to 'Courses'.
public Course getCourse([ReadOnlyArray()] Course[] Courses) { ... }
解决办法:给传递参数添加ReadOnly或WriteOnly属性
参考:https://docs.microsoft.com/zh-cn/previous-versions/hh975353%28v%3dvs.110%29