更新:2007 年 11 月
命名空间:
System.Web 程序集:
System.Web(在 System.Web.dll 中)
Public Overridable Function GetVaryByCustomString ( _
context As HttpContext, _
custom As String _
) As String
Dim instance As HttpApplication
Dim context As HttpContext
Dim custom As String
Dim returnValue As String
returnValue = instance.GetVaryByCustomString(context, _
custom)
public virtual string GetVaryByCustomString(
HttpContext context,
string custom
)
public:
virtual String^ GetVaryByCustomString(
HttpContext^ context,
String^ custom
)
public String GetVaryByCustomString(
HttpContext context,
String custom
)
public function GetVaryByCustomString(
context : HttpContext,
custom : String
) : String
返回值
类型:
System..::.String如果 custom 参数的值为 "browser",则为浏览器的 Type;否则为 nullNothingnullptrnull 引用(在 Visual Basic 中为 Nothing)。
可以重写 GetVaryByCustomString 以添加一个新方法,该方法计算基于当前请求的自定义变化依据值。此实现必须调用它不能识别的自定义值的基类。有关更多信息,请参见 如何:使用自定义字符串对页的各个版本进行缓存。
Windows Vista, Windows XP SP2, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP Starter Edition, Windows Server 2003, Windows Server 2000 SP4, Windows Millennium Edition, Windows 98
.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求。
.NET Framework
受以下版本支持:3.5、3.0、2.0、1.1、1.0
参考
其他资源