Set-SPOStructuralNavigationCacheWebState

启用或禁用网站集中 Web 的缓存。

语法

Default (默认值)

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

适用:SharePoint Online $true启用缓存,$false禁用缓存。

参数属性

类型:System.Boolean
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

-WebUrl

适用:SharePoint Online 指定需要设置其缓存状态的 Web 的绝对 URL。

参数属性

类型:System.String
默认值:None
支持通配符:False
不显示:False

参数集

(All)
Position:Named
必需:True
来自管道的值:False
来自管道的值(按属性名称):False
来自剩余参数的值:False

CommonParameters

此 cmdlet 支持通用参数:-Debug、-ErrorAction、-ErrorVariable、-InformationAction、-InformationVariable、-OutBuffer、-OutVariable、-PipelineVariable、-ProgressAction、-Verbose、-WarningAction 和 -WarningVariable。 有关详细信息,请参阅 about_CommonParameters

输入

None

输出

System.Object

备注

若要查看示例,请键入:“get-help Set-SPOStructuralNavigationCacheWebState -examples”。

有关详细信息,请键入:“get-help Set-SPOStructuralNavigationCacheWebState -detailed”。

有关技术信息,请键入:“get-help Set-SPOStructuralNavigationCacheWebState -full”。

有关联机帮助,请键入:“get-help Set-SPOStructuralNavigationCacheWebState -online”