-
Notifications
You must be signed in to change notification settings - Fork 5
Web operations
Albert Moravec edited this page Mar 15, 2018
·
2 revisions
Loads all sub-webs of currently selected web
op.LoadWebs()
.Execute();
This also sets loaded web as the one to operate on
op.LoadWeb("Dashboard")
.Execute();
op.SelectWeb("Dashboard"); // Now you can operate on the selected web
// Default template
op.CreateWeb("Customers", "customers") // URL is relative to current web
.Execute();
// Using custom template
op.CreateWeb("Customers", "customers", "CustomersTemplate")
.Execute();
op.SelectWeb("Customers")
.DeleteWeb()
.Execute();
// Using predefined templates
op.CreateList("Documents", ListTemplate.DocumentLibrary)
.Execute();
// Using custom template name
op.CreateList("Tasks", "Custom tasks")
.Execute();
op.DeleteList("List #1")
.Execute();