Searches for a pattern in each metadata tag and returns the result as a list.

Namespace:  FreeImageAPI.Metadata
Assembly:  FreeImageNET (in FreeImageNET.dll)

Syntax

C#
public List<MetadataTag> RegexSearch(
	string searchPattern,
	MD_SEARCH_FLAGS flags
)
Visual Basic (Declaration)
Public Function RegexSearch ( _
	searchPattern As String, _
	flags As MD_SEARCH_FLAGS _
) As List(Of MetadataTag)
Visual C++
public:
List<MetadataTag^>^ RegexSearch(
	String^ searchPattern, 
	MD_SEARCH_FLAGS flags
)

Parameters

searchPattern
Type: System..::.String
The regular expression to use for the search.
flags
Type: FreeImageAPI..::.MD_SEARCH_FLAGS
A bitfield that controls which fields should be searched in.

Return Value

A list containing all found metadata tags.

Exceptions

ExceptionCondition
System..::.ArgumentNullException searchPattern is null.
System..::.ArgumentException searchPattern is empty.

Version Information

FreeImage.NET

Supported in: 3.11.0, 3.12.0, 3.13.0, 3.13.1

See Also