Click or drag to resize
WICMetadataHandlerRemoveQuery Method
Removes a metadata query from an instance of BitmapMetadata.

Namespace: FreeImageAPI.Metadata
Assembly: FreeImageNET (in FreeImageNET.dll) Version: 3.17.0.4 (3.17.0)
Syntax
C#
public void RemoveQuery(
	string query
)

Parameters

query
Type: SystemString
The metadata query to remove.
Exceptions
ExceptionCondition
ArgumentNullExceptionquery is null.
InvalidOperationExceptionOccurs when image metadata is read-only.
Examples
using (FreeImageBitmap fib = new FreeImageBitmap(path))
{
    WICMetadataHandler metadata = fib.GetWICMetadataHandler();
    metadata.DateTaken = DateTime.Now;
    metadata.Comment = "Hallo";
    object alt = metadata.GetQuery("System.GPS.Latitude");
    metadata.Save();
}
See Also