This documentation is archived and is not being maintained.

BitmapMetadata.Location Property

Gets a value that identifies the base location of the metadata that is associated with an image.

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

public string Location { get; }
You cannot set this property in XAML.

Property Value

Type: System.String
The base location of the image metadata.

The following code example demonstrates how to read various properties of the BitmapMetadata object and send their values to a MessageBox as strings.

FileStream stream4 = new FileStream("image3.tif", FileMode.Create);
BitmapMetadata myBitmapMetadata2 = new BitmapMetadata("tiff");
TiffBitmapEncoder encoder4 = new TiffBitmapEncoder();
encoder4.Frames = decoder2.Frames;

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, 3.0