System::Xml::XmlImplementation::HasFeature 方法

XmlImplementation::HasFeature method

测试文档 Object 模型(DOM)实现是否支持特定功能。

bool System::Xml::XmlImplementation::HasFeature(const String &strFeature, const String &strVersion)
ParameterType描述
strFeatureconst String&要测试的功能的包名称。此名称不区分大小写。
strVersionconst String&这是用于测试的包名称的版本号。如果未指定版本(nullptr),支持该功能的任何版本会导致方法返回 true

ReturnValue

true if the feature is implemented in the specified version; otherwise, false.

备注

下表显示了导致 HasFeature 返回 true 的组合。
strFeaturestrVersion
XML1.0
XML2.0

另见