Share via


HttpCachePolicyBase.SetVaryByCustom(String) 方法

定义

在派生类中重写时,指定一个文本字符串,它用于改变缓存的输出响应。

public:
 virtual void SetVaryByCustom(System::String ^ custom);
public virtual void SetVaryByCustom (string custom);
abstract member SetVaryByCustom : string -> unit
override this.SetVaryByCustom : string -> unit
Public Overridable Sub SetVaryByCustom (custom As String)

参数

custom
String

用于改变已缓存的输出的文本字符串。

例外

适用于