Add-SPOSiteDesign

新建网站设计,可供用户在通过 SharePoint 主页新建网站时使用。

语法

Default (默认值)

Add-SPOSiteDesign
    -Title <String>
    -WebTemplate <String>
    -SiteScripts <SPOSiteScriptPipeBind[]>
    [-Description <String>]
    [-ThumbnailUrl <String>]
    [-PreviewImageUrl <String>]
    [-PreviewImageAltText <String>]
    [-IsDefault]
    [-DesignPackageId <Guid>]
    [<CommonParameters>]

说明

新建网站设计,可供用户在通过 SharePoint 主页新建网站时使用。

示例

示例 1

此示例创建新的网站设计。

Add-SPOSiteDesign `
  -Title "Contoso customer tracking" `
  -WebTemplate "64" `
  -SiteScripts "<ID>" `
  -Description "Tracks key customer data in a list" `
  -ThumbnailUrl "https://contoso.sharepoint.com/SiteAssets/site-thumbnail.png" `
  -PreviewImageUrl "https://contoso.sharepoint.com/SiteAssets/site-preview.png" `
  -PreviewImageAltText "site preview"

参数

-Description

适用:SharePoint Online

网站设计的显示说明。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-DesignPackageId

适用:SharePoint Online

与网站设计关联的设计包的 ID。

参数属性

类型:System.Guid
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-IsDefault

适用:SharePoint Online

开关(如果提供)将网站设计应用于默认网站模板。 有关详细信息,请参阅 自定义默认网站设计

参数属性

类型:System.Management.Automation.SwitchParameter
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-PreviewImageAltText

适用:SharePoint Online

用于辅助功能的图像的替换文字说明。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-PreviewImageUrl

适用:SharePoint Online

预览图像的 URL。 如果没有指定,SharePoint 使用通用图像。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-SiteScripts

适用:SharePoint Online

包含一个或多个网站脚本的数组。 每个脚本都由 ID 标识。 脚本按列表中的顺序运行。

参数属性

类型:

Microsoft.Online.SharePoint.PowerShell.SPOSiteScriptPipeBind[]

默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-ThumbnailUrl

适用:SharePoint Online

缩略图图像的 URL。 如果没有指定,SharePoint 使用通用图像。 建议的大小为 400 x 300 像素。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:False
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-Title

适用:SharePoint Online

网站设计的显示名称。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WebTemplate

适用:SharePoint Online

指明要将设计添加到的基模板。 若要添加到团队网站模板,请使用值 64;若要添加到通信网站模板,请使用值 68。 有关详细信息,请访问 SharePoint 网站设计和网站脚本概述

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

None

输出

System.Object