BitmapEncoder::Metadata Property

 
System_CAPS_noteNote

The .NET API Reference documentation has a new home. Visit the .NET API Browser on docs.microsoft.com to see the new experience.

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:
property BitmapMetadata^ Metadata {
	virtual BitmapMetadata^ get();
	virtual void set(BitmapMetadata^ value);
}

Exception Condition
InvalidOperationException

The encoder does not support global metadata.

ArgumentNullException

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

ArgumentNullException

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
Available since 3.0
Return to top
Show: