Contains()

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)

Arguments

ParameterTypeDescription
schemaconst SharedPtr<XmlSchema>&The XmlSchema object.

Return Value

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

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)

Arguments

ParameterTypeDescription
nsconst String&The namespace URI associated with the schema. For XML Schemas, this will typically be the target namespace.

Return Value

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

See Also