Skip to content

Instantly share code, notes, and snippets.

What would you like to do?
using (var ctx = new ClientContext(<site url>))
ctx.RequestTimeout = Timeout.Infinite;
Web web = ctx.Web;
ctx.Load(web, w => w.Title);
ProvisioningTemplateApplyingInformation ptai
= new ProvisioningTemplateApplyingInformation
ProgressDelegate = delegate (String message, Int32 progress, Int32 total)
log.Info(String.Format("{0:00}/{1:00} - {2}", progress, total, message));
IgnoreDuplicateDataRowErrors = true
web.ApplyProvisioningTemplate(Template, ptai);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment