System.Xml.XmlNode.Supports Method

Tests if the DOM implementation implements a specific feature.

Syntax

public virtual bool Supports (string feature, string version)

Parameters

feature
The package name of the feature to test. This name is not case-sensitive.
version
The version number of the package name to test. If the version is not specified (null), supporting any version of the feature causes the method to return true.

Returns

true if the feature is implemented in the specified version; otherwise, false. The following table describes the combinations that return true.

XML

1.0

XML

2.0

Remarks

This method currently returns true only when feature is "xml" and version is "1.0" or "2.0". This is the equivalent behavior that W3C Document Object Model Level 2 expects. However, it does not mean that this document object model really conforms to the W3C standard. Actually it does not conform to the standard.

Requirements

Namespace: System.Xml
Assembly: System.Xml (in System.Xml.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0