mscorlib(4.0.0.0) API with additions
RequestCachePolicy.cs
1 namespace System.Net.Cache
2 {
4  public class RequestCachePolicy
5  {
6  private RequestCacheLevel m_Level;
7 
10  public RequestCacheLevel Level => m_Level;
11 
15  {
16  }
17 
22  {
23  if (level < RequestCacheLevel.Default || level > RequestCacheLevel.NoCacheNoStore)
24  {
25  throw new ArgumentOutOfRangeException("level");
26  }
27  m_Level = level;
28  }
29 
32  public override string ToString()
33  {
34  return "Level:" + m_Level.ToString();
35  }
36  }
37 }
RequestCachePolicy()
Initializes a new instance of the T:System.Net.Cache.RequestCachePolicy class.
Satisfies a request for a resource either by using the cached copy of the resource or by sending a re...
The exception that is thrown when the value of an argument is outside the allowable range of values a...
RequestCacheLevel Level
Gets the T:System.Net.Cache.RequestCacheLevel value specified when this instance was constructed.
Defines an application's caching requirements for resources obtained by using T:System....
RequestCacheLevel
Specifies caching behavior for resources obtained using T:System.Net.WebRequest and its derived class...
override string ToString()
Returns a string representation of this instance.
RequestCachePolicy(RequestCacheLevel level)
Initializes a new instance of the T:System.Net.Cache.RequestCachePolicy class. using the specified ca...