XProcessingInstruction Constructor (String, String)

Initializes a new instance of the XProcessingInstruction class.

Namespace:  System.Xml.Linq
Assembly:  System.Xml.Linq (in System.Xml.Linq.dll)

public XProcessingInstruction(
	string target,
	string data
)

Parameters

target
Type: System.String
A String containing the target application for this XProcessingInstruction.
data
Type: System.String
The string data for this XProcessingInstruction.

ExceptionCondition
ArgumentNullException

The target or data parameter is null.

ArgumentException

The target does not follow the constraints of an XML name.

Silverlight

Supported in: 5, 4, 3

Silverlight for Windows Phone

Supported in: Windows Phone OS 7.1, Windows Phone OS 7.0

XNA Framework

Supported in: Xbox 360, Windows Phone OS 7.0

For a list of the operating systems and browsers that are supported by Silverlight, see Supported Operating Systems and Browsers.

Community Additions

ADD
Show: