asp.net.ph

HttpApplication.GetVaryByCustomString Method

System.Web Namespace   HttpApplication Class


Provides an application-wide implementation of the VaryByCustom property.

[ VB ]
Overridable Public Function GetVaryByCustomString ( _
   ByVal context As HttpContext, _
   ByVal custom As String _
) As String

[ C# ]
public virtual string GetVaryByCustomString (
   HttpContext context,
   string custom
);

[ C++ ]
public: virtual String* GetVaryByCustomString (
   HttpContext* context,
   String* custom
);

[ JScript ]
public function GetVaryByCustomString (
   context : HttpContext,
   custom : String
) : String;

Parameters

context
An HttpContext that contains information about the current Web request
custom
The custom string that specifies which cached response is used to response to the current request.

Return Value

If the value of the custom parameter is "browser", the browser's Type; otherwise, a null reference ( Nothing in Visual Basic ).

Remarks

You can override GetVaryByCustomString to add a new method for calculating custom vary-by values based on the current request. The implementation has to call the base class for custom values that it does not recognize. For more information, see Caching Versions of a Page Based on Custom Strings.

See Also

HttpApplication Members Skip Navigation Links




Home
Suggested Reading


Previous page Back to top Next page

© 2000-2010 Rey Nuñez All rights reserved.

If you have any question, comment or suggestion
about this site, please send us a note

You can help support asp.net.ph