CachePolicy Property

PackWebRequest.CachePolicy Property

 

Gets or sets the RequestCachePolicy.

Namespace:   System.IO.Packaging
Assembly:  PresentationCore (in PresentationCore.dll)

public override RequestCachePolicy CachePolicy { get; set; }

Property Value

Type: System.Net.Cache.RequestCachePolicy

The RequestCachePolicy to use with pack URI web request.

Exception Condition
WebException

The specified RequestCachePolicy to set is not valid.

The CachePolicy property is distinct from the CachePolicy of the inner WebRequest returned by the GetInnerRequest method.

.NET Framework
Available since 3.0
Return to top
Show:
© 2016 Microsoft