System.Web.HttpResponse.RemoveOutputCacheItem C# (CSharp) Method

RemoveOutputCacheItem() public static method

public static RemoveOutputCacheItem ( string path, string providerName ) : void
path string
providerName string
return void
		public static void RemoveOutputCacheItem (string path, string providerName)
		{
			if (path == null)
				throw new ArgumentNullException ("path");

			if (path.Length > 0 && path [0] != '/')
				throw new ArgumentException ("Invalid path for HttpResponse.RemoveOutputCacheItem: '" + path + "'. An absolute virtual path is expected");

			OutputCache.RemoveFromProvider (path, providerName);
		}
#endif

Same methods

HttpResponse::RemoveOutputCacheItem ( string path ) : void

Usage Example

Example #1
0
 public override void RemoveOutputCacheItem(string path)
 {
     HttpResponse.RemoveOutputCacheItem(path);
 }