XProcessingInstruction Konstruktoren

Definition

Initialisiert eine neue Instanz der XProcessingInstruction-Klasse.

Überlädt

Name Beschreibung
XProcessingInstruction(XProcessingInstruction)

Initialisiert eine neue Instanz der XProcessingInstruction-Klasse.

XProcessingInstruction(String, String)

Initialisiert eine neue Instanz der XProcessingInstruction-Klasse.

XProcessingInstruction(XProcessingInstruction)

Quelle:
XProcessingInstruction.cs
Quelle:
XProcessingInstruction.cs
Quelle:
XProcessingInstruction.cs
Quelle:
XProcessingInstruction.cs
Quelle:
XProcessingInstruction.cs

Initialisiert eine neue Instanz der XProcessingInstruction-Klasse.

public:
 XProcessingInstruction(System::Xml::Linq::XProcessingInstruction ^ other);
public XProcessingInstruction(System.Xml.Linq.XProcessingInstruction other);
new System.Xml.Linq.XProcessingInstruction : System.Xml.Linq.XProcessingInstruction -> System.Xml.Linq.XProcessingInstruction
Public Sub New (other As XProcessingInstruction)

Parameter

other
XProcessingInstruction

Der XProcessingInstruction Knoten, von dem kopiert werden soll.

Hinweise

Dieser Konstruktor wird in erster Linie intern verwendet, um eine tiefe Kopie einer XML-Struktur zu erstellen.

Weitere Informationen

Gilt für:

XProcessingInstruction(String, String)

Quelle:
XProcessingInstruction.cs
Quelle:
XProcessingInstruction.cs
Quelle:
XProcessingInstruction.cs
Quelle:
XProcessingInstruction.cs
Quelle:
XProcessingInstruction.cs

Initialisiert eine neue Instanz der XProcessingInstruction-Klasse.

public:
 XProcessingInstruction(System::String ^ target, System::String ^ data);
public XProcessingInstruction(string target, string data);
new System.Xml.Linq.XProcessingInstruction : string * string -> System.Xml.Linq.XProcessingInstruction
Public Sub New (target As String, data As String)

Parameter

target
String

A String containing the target application for this XProcessingInstruction.

data
String

Die Zeichenfolgendaten für dieses XProcessingInstruction.

Ausnahmen

Der target Parameter ist datanull.

Die target Einschränkungen eines XML-Namens werden nicht befolgt.

Beispiele

Im folgenden Beispiel wird ein XProcessingInstructionZiel und die Zeichenfolgendaten für die Verarbeitungsanweisung erstellt.

XProcessingInstruction pi = new XProcessingInstruction("xml-stylesheet", "type='text/xsl' href='hello.xsl'");
Console.WriteLine(pi);
Dim pi As XProcessingInstruction = <?xml-stylesheet type='text/xsl' href='hello.xsl'?>
Console.WriteLine(pi)

Dieses Beispiel erzeugt die folgende Ausgabe:

<?xml-stylesheet type='text/xsl' href='hello.xsl'?>

Weitere Informationen

Gilt für: