System::Xml::Schema::XmlSchemaType::IsDerivedFrom 方法

XmlSchemaType::IsDerivedFrom method

返回一个值,指示指定的派生模式类型是否从指定的基模式类型派生。

static bool System::Xml::Schema::XmlSchemaType::IsDerivedFrom(SharedPtr<XmlSchemaType> derivedType, const SharedPtr<XmlSchemaType> &baseType, XmlSchemaDerivationMethod except)
参数类型描述
derivedTypeSharedPtr<XmlSchemaType>要测试的派生 XmlSchemaType
baseTypeconst SharedPtr<XmlSchemaType>&用于与派生 XmlSchemaType 进行比较的基 XmlSchemaType
exceptXmlSchemaDerivationMethodXmlSchemaDerivationMethod 值之一,表示要从测试中排除的类型派生方法。

ReturnValue

true if the derived type is derived from the base type; otherwise, false.

另见