Freigeben über


XPathDocument-Konstruktor (Stream)

Initialisiert eine neue Instanz der XPathDocument-Klasse aus den XML-Daten im angegebenen Stream-Objekt.

Namespace: System.Xml.XPath
Assembly: System.Xml (in system.xml.dll)

Syntax

'Declaration
Public Sub New ( _
    stream As Stream _
)
'Usage
Dim stream As Stream

Dim instance As New XPathDocument(stream)
public XPathDocument (
    Stream stream
)
public:
XPathDocument (
    Stream^ stream
)
public XPathDocument (
    Stream stream
)
public function XPathDocument (
    stream : Stream
)

Parameter

  • stream
    Das Stream-Objekt, das die XML-Daten enthält.

Ausnahmen

Ausnahmetyp Bedingung

XmlException

In den XML-Daten wurde ein Fehler gefunden. Das XPathDocument bleibt leer.

ArgumentNullException

Das als Parameter übergebene Stream-Objekt ist NULL (Nothing in Visual Basic).

Plattformen

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 unterstützt nicht alle Versionen sämtlicher Plattformen. Eine Liste der unterstützten Versionen finden Sie unter Systemanforderungen.

Versionsinformationen

.NET Framework

Unterstützt in: 2.0, 1.1, 1.0

Siehe auch

Referenz

XPathDocument-Klasse
XPathDocument-Member
System.Xml.XPath-Namespace