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
在執行命令之前,提示您確認操作。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | cf |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Theme
主題或 SPOTheme 物件的名稱
Type: | SpoThemePipeBind |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | True |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-Web
網站的 URL
Type: | SpoSitePipeBind |
Position: | 1 |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-WhatIf
顯示訊息會描述命令的功效而不執行命令。
如需詳細資訊,請輸入下列命令:get-help about_commonparameters
。
Type: | SwitchParameter |
Aliases: | wi |
Position: | Named |
Default value: | None |
Required: | False |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |