XmlNode.Supports(String, String) XmlNode.Supports(String, String) XmlNode.Supports(String, String) XmlNode.Supports(String, String) Method

定義

測試 DOM 實作 (Implementation) 是否實作特定功能。Tests if the DOM implementation implements a specific feature.

public:
 virtual bool Supports(System::String ^ feature, System::String ^ version);
public virtual bool Supports (string feature, string version);
abstract member Supports : string * string -> bool
override this.Supports : string * string -> bool
Public Overridable Function Supports (feature As String, version As String) As Boolean

參數

feature
String String String String

要測試的功能套件 (Package) 名稱。The package name of the feature to test. 這個名稱並不區分大小寫。This name is not case-sensitive.

version
String String String String

要測試的封裝名稱版本編號。The version number of the package name to test. 如果沒有指定版本 (null),則支援任何版本的功能,將使這個方法傳回 true。If the version is not specified (null), supporting any version of the feature causes the method to return true.

傳回

如果在指定的版本實作這個功能,則為 true,否則為 falsetrue if the feature is implemented in the specified version; otherwise, false. 下表說明傳回 true 的組合。The following table describes the combinations that return true.

功能Feature 版本Version
XMLXML 1.01.0
XMLXML 2.02.0

適用於