Set-SPOStructuralNavigationCacheWebState
啟用或停用網站集合中 Web 的快取。
Syntax
Set-SPOStructuralNavigationCacheWebState
-WebUrl <String>
-IsEnabled <Boolean>
[<CommonParameters>]
Description
Set-SPOStructuralNavigationCacheWebState Cmdlet 可用來啟用或停用網站集合中 Web 的快取。 深入了解。
範例
範例 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 |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-WebUrl
指定需要設定其快取狀態之 Web 的絕對 URL。
Type: | String |
Position: | Named |
Default value: | None |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
輸入
None
輸出
System.Object
備註
若要查看範例,請輸入:「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"