Determine whether the MetadataSchema with gicen prefix is in the MetadataSchemaCollection.
True if the prefix is found in this MetadataSchemaCollection, false otherwise.
The prefix does not accept a null reference as a valid value.
| Exception Type | Condition |
|---|---|
| ArgumentNullException | The given prefix is a null reference. |
C#
Document doc = new Document(); doc.Metadata.Create( "tc", "http://www.tallcomponents.com/xmp/schema/v1.0/" ); bool found = doc.Metadata.Contains( "tc" ); //found = true found = doc.Metadata.Contains( "anotherPrefix" ); //found = falseVB.NET
Dim doc as Document = new Document() doc.Metadata.Create( "tc", "http://www.tallcomponents.com/xmp/schema/v1.0/" ) Dim found as Boolean found = doc.Metadata.Contains( "tc" ) 'found = True found = doc.Metadata.Contains( "anotherPrefix" ) 'found = False
MetadataSchemaCollection Class | TallComponents.PDF.Metadata Namespace