Set-SPOStructuralNavigationCacheSiteState
启用或禁用网站集中的所有 web 缓存。
语法
Set-SPOStructuralNavigationCacheSiteState
-SiteUrl <String>
-IsEnabled <Boolean>
[<CommonParameters>]
说明
Set-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 |
Required: | True |
Accept pipeline input: | False |
Accept wildcard characters: | False |
Applies to: | SharePoint Online |
-SiteUrl
为需要设置缓存状态的网站集的根 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-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"