XProcessingInstruction Constructors

Definitie

Initialiseert een nieuw exemplaar van de XProcessingInstruction klasse.

Overloads

Name Description
XProcessingInstruction(XProcessingInstruction)

Initialiseert een nieuw exemplaar van de XProcessingInstruction klasse.

XProcessingInstruction(String, String)

Initialiseert een nieuw exemplaar van de XProcessingInstruction klasse.

XProcessingInstruction(XProcessingInstruction)

Bron:
XProcessingInstruction.cs
Bron:
XProcessingInstruction.cs
Bron:
XProcessingInstruction.cs
Bron:
XProcessingInstruction.cs
Bron:
XProcessingInstruction.cs

Initialiseert een nieuw exemplaar van de 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)

Parameters

other
XProcessingInstruction

Het XProcessingInstruction knooppunt waaruit moet worden gekopieerd.

Opmerkingen

Deze constructor wordt voornamelijk intern gebruikt om een diepe kopie van een XML-structuur te maken.

Zie ook

Van toepassing op

XProcessingInstruction(String, String)

Bron:
XProcessingInstruction.cs
Bron:
XProcessingInstruction.cs
Bron:
XProcessingInstruction.cs
Bron:
XProcessingInstruction.cs
Bron:
XProcessingInstruction.cs

Initialiseert een nieuw exemplaar van de 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)

Parameters

target
String

Een String met de doeltoepassing hiervoor XProcessingInstruction.

data
String

De tekenreeksgegevens hiervoor XProcessingInstruction.

Uitzonderingen

De target of data parameter is null.

De target regels volgen niet de beperkingen van een XML-naam.

Voorbeelden

In het volgende voorbeeld wordt een XProcessingInstruction, en wordt een doel en de tekenreeksgegevens voor de verwerkingsinstructie opgegeven.

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)

In dit voorbeeld wordt de volgende uitvoer gegenereerd:

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

Zie ook

Van toepassing op