OutputCachePolicyBuilder.SetVaryByHost(Boolean) 方法

定义

添加策略设置,该设置是否因主机标头不同而有所不同。

public Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder SetVaryByHost (bool enabled);
member this.SetVaryByHost : bool -> Microsoft.AspNetCore.OutputCaching.OutputCachePolicyBuilder
Public Function SetVaryByHost (enabled As Boolean) As OutputCachePolicyBuilder

参数

enabled
Boolean

返回

适用于