XProcessingInstruction Konstruktory

Definicja

Inicjuje nowe wystąpienie klasy XProcessingInstruction.

Przeciążenia

XProcessingInstruction(XProcessingInstruction)

Źródło:
XProcessingInstruction.cs
Źródło:
XProcessingInstruction.cs
Źródło:
XProcessingInstruction.cs
Źródło:
XProcessingInstruction.cs
Źródło:
XProcessingInstruction.cs

Inicjuje nowe wystąpienie klasy XProcessingInstruction.

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

XProcessingInstruction Węzeł do skopiowania.

Uwagi

Ten konstruktor jest używany głównie wewnętrznie do tworzenia głębokiej kopii drzewa XML.

Zobacz też

Dotyczy

XProcessingInstruction(String, String)

Źródło:
XProcessingInstruction.cs
Źródło:
XProcessingInstruction.cs
Źródło:
XProcessingInstruction.cs
Źródło:
XProcessingInstruction.cs
Źródło:
XProcessingInstruction.cs

Inicjuje nowe wystąpienie klasy XProcessingInstruction.

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

Element String zawierający aplikację docelową dla tego XProcessingInstructionelementu .

data
String

Dane ciągu dla tego elementu XProcessingInstruction.

Wyjątki

Parametr target or data to null.

Element target nie jest przestrzegany ograniczeń nazwy XML.

Przykłady

Poniższy przykład tworzy obiekt XProcessingInstructioni określa element docelowy i dane ciągu dla instrukcji przetwarzania.

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)

Ten przykład generuje następujące wyniki:

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

Zobacz też

Dotyczy