System::Xml::Schema::XmlSchemaCollection::Contains 方法

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

返回一个值,指示指定的 XmlSchematargetNamespace 是否在集合中。

bool System::Xml::Schema::XmlSchemaCollection::Contains(const SharedPtr<XmlSchema> &schema)
参数类型描述
schemaconst SharedPtr<XmlSchema>&XmlSchema 对象。

ReturnValue

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

另见

XmlSchemaCollection::Contains(const String&) method

返回一个值,指示具有指定命名空间的模式是否在集合中。

bool System::Xml::Schema::XmlSchemaCollection::Contains(const String &ns)
参数类型描述
nsconst String&与模式关联的命名空间 URI。对于 XML 模式,通常是目标命名空间。

ReturnValue

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

另见