PackWebRequest::CachePolicy Property

 

Gets or sets the RequestCachePolicy.

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

public:
property RequestCachePolicy^ CachePolicy {
	virtual RequestCachePolicy^ get() override;
	virtual void set(RequestCachePolicy^ value) override;
}

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: