指定したファイルの XML データから XPathDocument クラスの新しいインスタンスを初期化します。
名前空間: System.Xml.XPath
アセンブリ: System.Xml (system.xml.dll 内)
構文
'宣言
Public Sub New ( _
uri As String _
)
'使用
Dim uri As String
Dim instance As New XPathDocument(uri)
public XPathDocument (
string uri
)
public:
XPathDocument (
String^ uri
)
public XPathDocument (
String uri
)
public function XPathDocument (
uri : String
)
パラメータ
- uri
XML データを格納しているファイルのパス。
例外
例外の種類 | 条件 |
---|---|
XML データでエラーが発生しました。XPathDocument が空です。 |
|
ファイル パスのパラメータが null 参照 (Visual Basic では Nothing) です。 |
解説
空白を保持するには、XmlSpace オブジェクトをパラメータとして受け入れる XPathDocument コンストラクタを使用します。
プラットフォーム
Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition
開発プラットフォームの中には、.NET Framework によってサポートされていないバージョンがあります。サポートされているバージョンについては、「システム要件」を参照してください。
バージョン情報
.NET Framework
サポート対象 : 2.0、1.1、1.0