.NET Framework 类库
BitmapImage..::.UriCachePolicy 属性

更新:2007 年 11 月

获取或设置一个值,该值表示来自 HTTP 源的图像的缓存策略。这是一个依赖项属性。

命名空间:  System.Windows.Media.Imaging
程序集:  PresentationCore(在 PresentationCore.dll 中)
用于 XAML 的 XMLNS:http://schemas.microsoft.com/winfx/xaml/presentation

语法

Visual Basic(声明)
<TypeConverterAttribute(GetType(RequestCachePolicyConverter))> _
Public Property UriCachePolicy As RequestCachePolicy
Visual Basic (用法)
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);
}
J#
/** @property */
/** @attribute TypeConverterAttribute(RequestCachePolicyConverter) */
public RequestCachePolicy get_UriCachePolicy()
/** @property */
/** @attribute TypeConverterAttribute(RequestCachePolicyConverter) */
public  void set_UriCachePolicy(RequestCachePolicy value)
JScript
public function get UriCachePolicy () : RequestCachePolicy
public function set UriCachePolicy (value : RequestCachePolicy)
XAML 属性元素用法
<object>
  <object.UriCachePolicy>
    <RequestCachePolicy .../>
  </object.UriCachePolicy>
</object>

属性值

类型:System.Net.Cache..::.RequestCachePolicy

当前上下文的基 RequestCachePolicy。默认值为 nullNothingnullptrnull 引用(在 Visual Basic 中为 Nothing

备注

UriCachePolicy 是在 .NET Framework 3.5 版中引入的。有关更多信息,请参见 .NET Framework 3.5 体系结构

平台

.NET Framework 和 .NET Compact Framework 并不是对每个平台的所有版本都提供支持。有关支持的版本的列表,请参见.NET Framework 系统要求

版本信息

.NET Framework

受以下版本支持:3.5 SP1、3.0 SP1
另请参见

参考

标记 :


Page view tracker