Set-SPOStructuralNavigationCacheWebState

啟用或停用網站集合中的網站快取。

Syntax

Set-SPOStructuralNavigationCacheWebState
   -WebUrl <String>
   -IsEnabled <Boolean>
   [<CommonParameters>]

Description

Set-SPOStructuralNavigationCacheWebState Cmdlet 可用來啟用或停用網站集合中的網站快取。 深入了解

範例

範例 1

PS C:\> Set-SPOStructuralNavigationCacheWebState -IsEnabled $true -WebUrl "https://contoso.sharepoint.com/sites/product/electronics"

本範例會啟用 web 的快取 https://contoso.sharepoint.com/sites/product/electronics

範例 2

Set-SPOStructuralNavigationCacheWebState -IsEnabled $false -WebUrl "https://contoso.sharepoint.com/sites/product/electronics"

本範例會停用 web 的快取 https://contoso.sharepoint.com/sites/product/electronics

參數

-IsEnabled

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

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

-網址

指定需要設定其快取狀態之網站的絕對 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-SPOStructuralNavigationCacheWebState -examples".

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

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

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