Note

Access to this page requires authorization. You can try signing in or .

Access to this page requires authorization. You can try .

BitmapImage.UriSource Property

Definition

Important

Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.

Gets or sets the Uniform Resource Identifier (URI) of the graphics source file that generated this BitmapImage.

public:
 property Uri ^ UriSource { Uri ^ get(); void set(Uri ^ value); };
Uri UriSource();

void UriSource(Uri value);
public System.Uri UriSource { get; set; }
var uri = bitmapImage.uriSource;
bitmapImage.uriSource = uri;
Public Property UriSource As Uri
<BitmapImage UriSource="uri" />

Property Value

An object describing the Uniform Resource Identifier (URI) of the graphics source file that generated this BitmapImage.

Remarks

The BaseUri property might be useful for forming the URI if you're applying an image source file to a particular Image element.

In low memory situations it is possible for an exception to be raised with the message "The image is unrecognized" and an HRESULT of 0x88982F60. While this exception ordinarily indicates bad data, if your app is close to its memory limit then the cause of the exception is likely to be low memory. In that case, we recommend that you free memory and try again.

Applies to

See also


Feedback

Was this page helpful?