Example #1
0
 /// <summary>
 /// Adds the specified OnenoteSection to the collection via POST.
 /// </summary>
 /// <param name="onenoteSection">The OnenoteSection to add.</param>
 /// <returns>The created OnenoteSection.</returns>
 public System.Threading.Tasks.Task <OnenoteSection> AddAsync(OnenoteSection onenoteSection)
 {
     return(this.AddAsync(onenoteSection, CancellationToken.None));
 }
Example #2
0
 /// <summary>
 /// Adds the specified OnenoteSection to the collection via POST.
 /// </summary>
 /// <param name="onenoteSection">The OnenoteSection to add.</param>
 /// <param name="cancellationToken">The <see cref="CancellationToken"/> for the request.</param>
 /// <returns>The created OnenoteSection.</returns>
 public System.Threading.Tasks.Task <OnenoteSection> AddAsync(OnenoteSection onenoteSection, CancellationToken cancellationToken)
 {
     this.ContentType = "application/json";
     this.Method      = "POST";
     return(this.SendAsync <OnenoteSection>(onenoteSection, cancellationToken));
 }
 /// <summary>
 /// Creates the specified OnenoteSection using POST.
 /// </summary>
 /// <param name="onenoteSectionToCreate">The OnenoteSection to create.</param>
 /// <returns>The created OnenoteSection.</returns>
 public System.Threading.Tasks.Task <OnenoteSection> CreateAsync(OnenoteSection onenoteSectionToCreate)
 {
     return(this.CreateAsync(onenoteSectionToCreate, CancellationToken.None));
 }