/// <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); }
/// <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); }
/// <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); }