System::Xml::Schema::XmlSchemaSet::Contains method

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

指示指定的 XML Schema 定义语言 (XSD) XmlSchema 对象是否在 XmlSchemaSet 中。

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

ReturnValue

true if the XmlSchema object is in the XmlSchemaSet; otherwise, false.

另见

XmlSchemaSet::Contains(String) method

指示具有指定目标命名空间 URI 的 XML Schema 定义语言 (XSD) 模式是否在 XmlSchemaSet 中。

bool System::Xml::Schema::XmlSchemaSet::Contains(String targetNamespace)
参数类型描述
targetNamespaceString架构的 targetNamespace 属性。

ReturnValue

true if a schema with the specified target namespace URI is in the XmlSchemaSet; otherwise, false.

另见