Gets a new filtered IMetadata
containing only the specified keys and their values. If a key is not present in the current
metadata, it will be ignored and will not be copied to the new metadata object.
Syntax
public static IMetadata FilterMetadata(this IMetadata metadata, params string[] keys)
Parameters
Name |
Type |
Description |
metadata |
IMetadata |
The metadata instance. |
keys |
string[] |
The keys to include in the new filtered metadata object. |
Return Value
Type |
Description |
IMetadata |
A new filtered IMetadata containing the specified keys and their values. |