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)
ParameterTypBeskrivning
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)
ParameterTypBeskrivning
nsconst String&Namnrums-URI:n som är associerad med schemat. För XML-scheman kommer detta vanligtvis att vara målnamnrymden.

ReturnValue

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

Se även