System::Xml::Schema::XmlSchemaCollection::Contains method

XmlSchemaCollection::Contains(const SharedPtr<XmlSchema>&) method

Returns a value indicating whether the targetNamespace of the specified XmlSchema is in the collection.

bool System::Xml::Schema::XmlSchemaCollection::Contains(const SharedPtr<XmlSchema> &schema)
ParameterTypeDescription
schemaconst SharedPtr<XmlSchema>&The XmlSchema object.

ReturnValue

true if there is a schema in the collection with the same targetNamespace; otherwise, false.

See Also

XmlSchemaCollection::Contains(const String&) method

Returns a value indicating whether a schema with the specified namespace is in the collection.

bool System::Xml::Schema::XmlSchemaCollection::Contains(const String &ns)
ParameterTypeDescription
nsconst String&The namespace URI associated with the schema. For XML Schemas, this will typically be the target namespace.

ReturnValue

true if a schema with the specified namespace is in the collection; otherwise, false.

See Also