WICMetadataHandler.ContainsQuery Method

FreeImage.NET

WICMetadataHandlerContainsQuery Method
Determines whether a given query string exists within a BitmapMetadata object.

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

Parameters

query
Type: SystemString
Identifies the string that is being queried in the current BitmapMetadata object.

Return Value

Type: Boolean
true if the query string is found within the metadata store; otherwise, false.
Exceptions
ExceptionCondition
ArgumentNullExceptionquery is null.
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