Windows apps
Collapse the table of content
Expand the table of content
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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:
© 2017 Microsoft