BitmapFrame.Create Method (Uri, RequestCachePolicy)

 

Creates a BitmapFrame from a given Uri with the specified RequestCachePolicy.

Namespace:   System.Windows.Media.Imaging
Assembly:  PresentationCore (in PresentationCore.dll)

public static BitmapFrame Create(
	Uri bitmapUri,
	RequestCachePolicy uriCachePolicy
)

Parameters

bitmapUri
Type: System.Uri

The location of the bitmap from which the BitmapFrame is created.

uriCachePolicy
Type: System.Net.Cache.RequestCachePolicy

The caching requirements for this BitmapFrame.

Return Value

Type: System.Windows.Media.Imaging.BitmapFrame

A BitmapFrame from a given Uri with the specified RequestCachePolicy.

Create(Uri, RequestCachePolicy) is introduced in the .NET Framework version 3.5. For more information, see .NET Framework Versions and Dependencies.

.NET Framework
Available since 3.0
Return to top
Show: