Esempio n. 1
0
 /// <summary>
 /// Adds the method XMLNode to an existing batch XmlNode for deleting an item.
 /// </summary>
 /// <param name="batch">The batch XMLNode.</param>
 /// <param name="sharePointId">The SharePoint id for this item.</param>
 internal static void AddDeleteMethodToBatch(this XContainer batch, string sharePointId)
 {
     batch.AddMethodToBatch(SharePointMethodCommand.Delete, sharePointId, null);
 }
Esempio n. 2
0
 /// <summary>
 /// Adds the method XMLNode to an existing batch XmlNode for insertion into SharePoint.
 /// </summary>
 /// <param name="batch">The batch XMLNode.</param>
 /// <param name="fields">The fields to send.</param>
 internal static void AddInsertMethodToBatch(this XContainer batch, Dictionary <string, object> fields)
 {
     batch.AddMethodToBatch(SharePointMethodCommand.New, null, fields);
 }
Esempio n. 3
0
 /// <summary>
 /// Adds the method XMLNode to an existing batch XmlNode for updating an item in SharePoint.
 /// </summary>
 /// <param name="batch">The batch XMLNode.</param>
 /// <param name="sharePointId">The SharePoint id for this item.</param>
 /// <param name="fields">The fields to send.</param>
 internal static void AddUpdateMethodToBatch(this XContainer batch, string sharePointId, Dictionary <string, object> fields)
 {
     batch.AddMethodToBatch(SharePointMethodCommand.Update, sharePointId, fields);
 }