Communication Sites and Modern Team Sites are great additions to SharePoint Online. They enable content authors/users to create/manage their sites more easily than before. A user with minimum knowledge of SharePoint can create a site, wiki, how to page, publish articles, create charts, add images, videos, links, and documents with greater ease than before.
Please refer to the below MSDN Wiki links for more information on Modern Team and Communication Sites.
PNP Core CSOM documentation can be found on the official site here. PnP Core CSOM library packages can be downloaded here.
For Creating the Modern Communication Site we have to use the CommunicationSiteCollectionCreationInformation Class with the below Properties,
|
Name
|
Description
|
|
AllowFileSharingForGuestUsers
|
If set to true, file sharing for guest users will be allowed.
|
|
Classification
|
The Site classification to use. For instance 'Contoso Classified'.
|
|
Description
|
The description to use for the site.
|
|
Lcid
|
The language to use for the site. If not specified will default to the language setting of the clientcontext.
|
|
Owner
|
The owner of the site. Reserved for future use.
|
|
SiteDesign
|
The built-in site design to used. If both SiteDesignId and SiteDesign have been specified, the GUID specified as SiteDesignId will be used.
|
|
SiteDesignId
|
The Guid of the site design to be used. If specified will override the SiteDesign property
|
|
Title
|
The title of the site to create
|
|
Url
|
The fully qualified url of the site.
|



Join the conversation! Your thoughts help the community grow.