Set-SPOWebTheme

設定 SharePoint 網站的主題。

Syntax

Set-SPOWebTheme
   [-Theme] <SpoThemePipeBind>
   [-Web] <SpoSitePipeBind>
   [-WhatIf]
   [-Confirm]
   [<CommonParameters>]

Description

使用此 Cmdlet 設定網站的自訂主題

範例

範例 1

Set-SPOWebTheme -Theme "Custom cyan" -Web https://contoso.sharepoint.com/sites/Contoso1

本範例會將「自訂青色」主題設定為 https://contoso.sharepoint.com/sites/Contoso1 網站。

參數

-Confirm

Prompts you for confirmation before executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:cf
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-Theme

主題或 SPOTheme 物件的名稱

Type:SpoThemePipeBind
Position:Named
Default value:None
Accept pipeline input:True
Accept wildcard characters:False
Applies to:SharePoint Online

-Web

網站的 URL

Type:SpoSitePipeBind
Position:1
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online

-WhatIf

Displays a message that describes the effect of the command instead of executing the command. For more information, type the following command: get-help about_commonparameters

Type:SwitchParameter
Aliases:wi
Position:Named
Default value:None
Accept pipeline input:False
Accept wildcard characters:False
Applies to:SharePoint Online