Table of contents
TOC
Collapse the table of content
Expand the table of content

WebExtensions.CreateWeb Method

SharePoint Dev Documents|Last Updated: 5/20/2017
|
1 Contributor

Adds a new child Web (site) to a parent Web.

Namespace:Microsoft.SharePoint.Client
Assembly: OfficeDevPnP.Core.dll

Syntax

public static Web CreateWeb(this Web parentWeb, String title, String leafUrl, String description, String template, Int32 language, Boolean inheritPermissions = True, Boolean inheritNavigation = True)

Parameters

parentWeb

  Type: Microsoft.SharePoint.Client.Web
  The parent Web (site) to create under

title

  Type: System.String
  The title of the new site.

leafUrl

  Type: System.String
  A string that represents the URL leaf name.

description

  Type: System.String
  The description of the new site.

template

  Type: System.String
  The name of the site template to be used for creating the new site.

language

  Type: System.Int32
  The locale ID that specifies the language of the new site.

(optional) inheritPermissions

  Type: System.Boolean
  Specifies whether the new site will inherit permissions from its parent site.

(optional) inheritNavigation

  Type: System.Boolean
  Specifies whether the site inherits navigation.

Return Value

Type: Web

See also

© 2018 Microsoft