System::Xml::Schema::XmlSchemaCollection::Contains Methode

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

Gibt einen Wert zurück, der angibt, ob das targetNamespace des angegebenen XmlSchema in der Sammlung enthalten ist.

bool System::Xml::Schema::XmlSchemaCollection::Contains(const SharedPtr<XmlSchema> &schema)
ParameterTypBeschreibung
schemaconst SharedPtr<XmlSchema>&Das XmlSchema-Objekt.

ReturnValue

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

Siehe auch

XmlSchemaCollection::Contains(const String&) method

Gibt einen Wert zurück, der angibt, ob ein Schema mit dem angegebenen Namespace in der Sammlung enthalten ist.

bool System::Xml::Schema::XmlSchemaCollection::Contains(const String &ns)
ParameterTypBeschreibung
nsconst String&Der Namespace-URI, der dem Schema zugeordnet ist. Für XML Schemas ist dies typischerweise das Ziel-Namespace.

ReturnValue

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

Siehe auch