Searches for a pattern in each metadata tag and returns the result as a list.
Namespace:
FreeImageAPI.MetadataAssembly: 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
Exception | Condition |
---|---|
System..::.ArgumentNullException | searchPattern is null. |
System..::.ArgumentException | searchPattern is empty. |