Bewerken

Share via


WebClient.CachePolicy Property

Definition

Gets or sets the application's cache policy for any resources obtained by this WebClient instance using WebRequest objects.

public:
 property System::Net::Cache::RequestCachePolicy ^ CachePolicy { System::Net::Cache::RequestCachePolicy ^ get(); void set(System::Net::Cache::RequestCachePolicy ^ value); };
public System.Net.Cache.RequestCachePolicy? CachePolicy { get; set; }
public System.Net.Cache.RequestCachePolicy CachePolicy { get; set; }
member this.CachePolicy : System.Net.Cache.RequestCachePolicy with get, set
Public Property CachePolicy As RequestCachePolicy

Property Value

A RequestCachePolicy object that represents the application's caching requirements.

Applies to