MetadataSchemaCollectionContains Method
Determine whether the MetadataSchema with gicen prefix is in the MetadataSchemaCollection.

Namespace:  TallComponents.PDF.Metadata
Assembly:  TallComponents.PDF.Kit (in TallComponents.PDF.Kit.dll) Version: 4.0.94.0
Syntax
public bool Contains(
	string prefix
)

Parameters

prefix
Type: SystemString
The MetadataSchema to look for.

Return Value

Type: Boolean
True if the prefix is found in this MetadataSchemaCollection, false otherwise.
Exceptions
ExceptionCondition
ArgumentNullExceptionThe given prefix is .
Remarks
The prefix does not accept as a valid value.
Examples
C#
Document doc = new Document();
doc.Metadata.Create( "tc", "http://www.tallcomponents.com/xmp/schema/v1.0/" );
bool found = doc.Metadata.<b>Contains</b>( "tc" ); //found = true
found = doc.Metadata.<b>Contains</b>( "anotherPrefix" ); //found = false
VB.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.<b>Contains</b>( "tc" ) 'found = True
found = doc.Metadata.<b>Contains</b>( "anotherPrefix" ) 'found = False
See Also