This documentation is archived and is not being maintained.

BitmapEncoder.Metadata Property

Gets or sets the metadata that will be associated with this bitmap during encoding.

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

public virtual BitmapMetadata Metadata { get; set; }


The encoder does not support global metadata.


The metadata value that is passed to the encoder is null.


An attempt is made to write metadata in an incompatible format.

Bitmap images support and store metadata differently. For more information about the metadata types that are supported for each bitmap, see the BitmapMetadata class.

.NET Framework

Supported in: 4, 3.5, 3.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

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