Method FromMetadata
FromMetadata(MetadataCollection)
Builds the filter equivalent to legacy containment filtering: the conjunction of one string-equality comparison per metadata entry.
public static MetadataFilter FromMetadata(MetadataCollection metadata)
Parameters
metadataMetadataCollectionThe key/value pairs that must all be present with equal values.
Returns
- MetadataFilter
The equivalent filter, or
nullwhenmetadataisnullor empty.