Click to Rate and Give Feedback
MSDN
MSDN Library
.NET Development
.NET Framework 3.5
BitmapImage Class
 UriCachePolicy Property
Collapse All/Expand All Collapse All
This page is specific to
Microsoft Visual Studio 2008/.NET Framework 3.5

Other versions are also available for the following:
.NET Framework Class Library
BitmapImage..::.UriCachePolicy Property

Gets or sets a value that represents the caching policy for images that come from an HTTP source. This is a dependency property.

Namespace:  System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)
XMLNS for XAML: http://schemas.microsoft.com/winfx/2006/xaml/presentation, http://schemas.microsoft.com/netfx/2007/xaml/presentation
Visual Basic (Declaration)
<TypeConverterAttribute(GetType(RequestCachePolicyConverter))> _
Public Property UriCachePolicy As RequestCachePolicy
Visual Basic (Usage)
Dim instance As BitmapImage
Dim value As RequestCachePolicy

value = instance.UriCachePolicy

instance.UriCachePolicy = value
C#
[TypeConverterAttribute(typeof(RequestCachePolicyConverter))]
public RequestCachePolicy UriCachePolicy { get; set; }
Visual C++
[TypeConverterAttribute(typeof(RequestCachePolicyConverter))]
public:
property RequestCachePolicy^ UriCachePolicy {
    RequestCachePolicy^ get ();
    void set (RequestCachePolicy^ value);
}
JScript
public function get UriCachePolicy () : RequestCachePolicy
public function set UriCachePolicy (value : RequestCachePolicy)
XAML Property Element Usage
<object>
  <object.UriCachePolicy>
    <RequestCachePolicy .../>
  </object.UriCachePolicy>
</object>

Property Value

Type: System.Net.Cache..::.RequestCachePolicy
The base RequestCachePolicy of the current context. The default is nullNothingnullptra null reference (Nothing in Visual Basic).

UriCachePolicy is introduced in the .NET Framework version 3.5. For more information, see .NET Framework 3.5 Architecture.

Windows 7, Windows Vista, Windows XP SP2, Windows Server 2008 R2, Windows Server 2008, Windows Server 2003

The .NET Framework and .NET Compact Framework do not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.

.NET Framework

Supported in: 3.5 SP1, 3.0 SP1
Tags What's this?: Add a tag
Community Content   What is Community Content?
Add new content RSS  Annotations
Processing
© 2009 Microsoft Corporation. All rights reserved. Terms of Use | Trademarks | Privacy Statement | Site Feedback
Page view tracker