XProcessingInstruction Konstruktory

Definice

Inicializuje novou instanci XProcessingInstruction třídy .

Přetížení

XProcessingInstruction(XProcessingInstruction)

Inicializuje novou instanci XProcessingInstruction třídy .

XProcessingInstruction(String, String)

Inicializuje novou instanci XProcessingInstruction třídy .

XProcessingInstruction(XProcessingInstruction)

Source:
XProcessingInstruction.cs
Source:
XProcessingInstruction.cs
Source:
XProcessingInstruction.cs

Inicializuje novou instanci XProcessingInstruction třídy .

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)

Parametry

other
XProcessingInstruction

Uzel XProcessingInstruction , ze které chcete kopírovat.

Poznámky

Tento konstruktor se primárně používá interně k vytvoření hloubkové kopie stromu XML.

Viz také

Platí pro

XProcessingInstruction(String, String)

Source:
XProcessingInstruction.cs
Source:
XProcessingInstruction.cs
Source:
XProcessingInstruction.cs

Inicializuje novou instanci XProcessingInstruction třídy .

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)

Parametry

target
String

Obsahující String cílovou aplikaci pro tento XProcessingInstructionobjekt .

data
String

Řetězcová data pro tento XProcessingInstruction.

Výjimky

Parametr target nebo data je null.

Objekt target nedodržuje omezení názvu XML.

Příklady

Následující příklad vytvoří XProcessingInstructiona určuje cíl a řetězcová data pro zpracování instrukce.

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)  

Tento příklad vytvoří následující výstup:

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

Viz také

Platí pro