次の方法で共有


XPathNavigator.Matches メソッド (String)

現在のノードが指定した XSLT パターンと一致するかどうかを判断します。

Overloads Public Overridable Function Matches( _
   ByVal xpath As String _) As Boolean
[C#]
public virtual bool Matches(stringxpath);
[C++]
public: virtual bool Matches(String* xpath);
[JScript]
public function Matches(
   xpath : String) : Boolean;

パラメータ

  • xpath
    XSLT パターンを表す文字列。

戻り値

現在のノードが XSLT パターンと一致する場合は true 。それ以外の場合は false

例外

例外の種類 条件
ArgumentException xpath を計算できません。

解説

このメソッドは、 XPathNavigator 状態には影響を与えません。

必要条件

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

参照

XPathNavigator クラス | XPathNavigator メンバ | System.Xml.XPath 名前空間 | XPathNavigator.Matches オーバーロードの一覧