Set-SPOStructuralNavigationCacheSiteState

啟用或停用網站集合中所有 Web 的快取功能。

Syntax

Set-SPOStructuralNavigationCacheSiteState
   -SiteUrl <String>
   -IsEnabled <Boolean>
   [<CommonParameters>]

Description

SPOStructuralNavigationCacheSiteState Cmdlet 可用於啟用或停用網站集合中所有 Web 的快取功能。深入了解

範例

範例 1

PS C:\> Set-SPOStructuralNavigationCacheSiteState -IsEnabled $true -SiteUrl "https://contoso.sharepoint.com/sites/product/"

本範例啟用網站集合中所有 Web 的快取功能。https://contoso.sharepoint.com/sites/product/

範例 2

PS C:\> Set-SPOStructuralNavigationCacheSiteState -IsEnabled $false -SiteUrl "https://contoso.sharepoint.com/sites/product/"

此範例停用網站集合中所有 Web 的快取功能。https://contoso.sharepoint.com/sites/product/

參數

-IsEnabled

$true 啟用快取功能,$false 停用快取功能。

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

-SiteUrl

指定需設定其快取狀態的網站集合根網站的絕對 URL。

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

輸入

輸出

系統.物件

備註

To see the examples, type: "get-help Set-SPOStructuralNavigationCacheSiteState -examples".

For more information, type: "get-help Set-SPOStructuralNavigationCacheSiteState -detailed". 

For technical information, type: "get-help Set-SPOStructuralNavigationCacheSiteState -full". 

For online help, type: "get-help Set-SPOStructuralNavigationCacheSiteState -online"