System::Xml::Schema::XmlSchemaCollection::Contains metod

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

Returnerar ett värde som indikerar om targetNamespace för den angivna XmlSchema finns i samlingen.

bool System::Xml::Schema::XmlSchemaCollection::Contains(const SharedPtr<XmlSchema> &schema)
ParameterTypeBeskrivning
schemaconst SharedPtr<XmlSchema>&XmlSchema‑objektet.

ReturnValue

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

Se även

XmlSchemaCollection::Contains(const String&) method

Returnerar ett värde som indikerar om ett schema med den angivna namnrymden finns i samlingen.

bool System::Xml::Schema::XmlSchemaCollection::Contains(const String &ns)
ParameterTypeBeskrivning
nsconst String&Namnutrymmet URI som är associerat med schemat. För XML-scheman kommer detta vanligtvis att vara mål‑namnutrymmet.

ReturnValue

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

Se även