Language

XmlImplementation.HasFeature(String, String) メソッド

定義

ドキュメント オブジェクト モデル (DOM) 実装が特定の機能を実装しているかどうかをテストします。

public:
 bool HasFeature(System::String ^ strFeature, System::String ^ strVersion);
public bool HasFeature(string strFeature, string strVersion);
member this.HasFeature : string * string -> bool
Public Function HasFeature (strFeature As String, strVersion As String) As Boolean

パラメーター

strFeature
String

テストする機能のパッケージ名。 この名前では大文字と小文字は区別されません。

strVersion
String

これは、テストするパッケージ名のバージョン番号です。 バージョンが指定されていない場合 (null)、機能の任意のバージョンをサポートすると、メソッドは trueを返します。

返品

true 機能が指定されたバージョンで実装されている場合。それ以外の場合は false。

次の表は、 HasFeature が trueを返す原因となる組み合わせを示しています。

strFeature strVersion
Xml 1.0
Xml 2.0

適用対象