Code Snippet

WebExtensions.CreateWeb (PnP Core Component)

WebExtensions.CreateWeb – This CSOM extension method from PnP Core Component used to create a new sub-site under the parent web in SharePoint. Supports: SharePoint 2013+, SharePoint Online Assembly: OfficeDevPnP.Core.dll Namespace: Microsoft.SharePoint.Client There are two extension CreateWeb methods are provided in PnP Core Component for creating a subsite under WebExtensions class. Method Read more…