PackWebRequest.CachePolicy Property


The .NET API Reference documentation has a new home. Visit the .NET API Browser on to see the new experience.

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

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