Set-SPOStructuralNavigationCacheWebState
启用或禁用网站集中 Web 的缓存。
语法
Set-SPOStructuralNavigationCacheWebState
-WebUrl <String>
-IsEnabled <Boolean>
[<CommonParameters>]
说明
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"
相关链接
反馈
https://aka.ms/ContentUserFeedback。
即将发布:在整个 2024 年,我们将逐步淘汰作为内容反馈机制的“GitHub 问题”,并将其取代为新的反馈系统。 有关详细信息,请参阅:提交和查看相关反馈