asp.net.ph

HttpCacheVaryByParams Item Property

System.Web Namespace   HttpCacheVaryByParams Class


Sets or retrieves the name of the HTTP Get or Post parameter that is used to select one of several different cached responses.

In [ C# ], this property is the indexer for the HttpCacheVaryByParams class.

[ VB ]
Public Default Property Item ( _
   ByVal header As String _
) As Boolean

[ C# ]
public bool this  [ 
   string header
] {get; set;}

[ C++ ]
public: __property bool get_Item (
   String* header
);
public: __property void set_Item (
   String* header,
   bool
);

[ JScript ]
returnValue = HttpCacheVaryByParamsObject.Item ( header );
HttpCacheVaryByParamsObject.Item ( header ) = returnValue;
-or-
returnValue = HttpCacheVaryByParamsObject ( header );
HttpCacheVaryByParamsObject ( header ) = returnValue;

In [ JScript ], you can use the default indexed properties defined by a type, but you cannot explicitly define your own. However, specifying the expando attribute on a class automatically provides a default indexed property whose type is Object and whose index type is String.

Arguments [ JScript ]

header
The name of the custom header.

Parameters

header
The name of the custom header.

Property Value

The parameter name.

Exceptions


Exception Type Condition
ArgumentNullException Occurs when header is a null reference ( Nothing in Visual Basic ).

See Also

HttpCacheVaryByParams Members   Caching Multiple Versions of a Page 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