コード例 #1
0
 /// <summary>
 /// Deprecated Method for adding a new object to the Tasks EntitySet. Consider using the .Add method of the associated ObjectSet&lt;T&gt; property instead.
 /// </summary>
 public void AddToTasks(Task task)
 {
     base.AddObject("Tasks", task);
 }
コード例 #2
0
 /// <summary>
 /// Create a new Task object.
 /// </summary>
 /// <param name="taskID">Initial value of the TaskID property.</param>
 /// <param name="start">Initial value of the Start property.</param>
 /// <param name="end">Initial value of the End property.</param>
 /// <param name="title">Initial value of the Title property.</param>
 /// <param name="isAllDay">Initial value of the IsAllDay property.</param>
 public static Task CreateTask(global::System.Int32 taskID, global::System.DateTime start, global::System.DateTime end, global::System.String title, global::System.Boolean isAllDay)
 {
     Task task = new Task();
     task.TaskID = taskID;
     task.Start = start;
     task.End = end;
     task.Title = title;
     task.IsAllDay = isAllDay;
     return task;
 }