次の方法で共有


XmlImplementation.HasFeature メソッド

DOM 実装が特定の機能を実装するかどうかをテストします。

Public Function HasFeature( _
   ByVal strFeature As String, _   ByVal strVersion As String _) As Boolean
[C#]
public bool HasFeature(stringstrFeature,stringstrVersion);
[C++]
public: bool HasFeature(String* strFeature,String* strVersion);
[JScript]
public function HasFeature(
   strFeature : String,strVersion : String) : Boolean;

パラメータ

  • strFeature
    テスト対象の機能のパッケージ名。この名前は大文字と小文字を区別しません。
  • strVersion
    これは、テストする対象のパッケージ名のバージョン番号です。バージョンを指定しない場合 (null 参照 (Visual Basic では Nothing))、機能のいずれかのバージョンがサポートされていれば、このメソッドは true を返します。

戻り値

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

HasFeaturetrue を返す組み合わせを次の表に示します。

strFeature strVersion
XML 1.0
XML 2.0

必要条件

プラットフォーム: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 ファミリ, .NET Compact Framework - Windows CE .NET

参照

XmlImplementation クラス | XmlImplementation メンバ | System.Xml 名前空間