XamlReader.Parse XamlReader.Parse XamlReader.Parse XamlReader.Parse Method

Definition

Reads the markup in the specified text string and returns an object that corresponds to the root of the specified markup.

Overloads

Parse(String) Parse(String) Parse(String) Parse(String)

Reads the XAML input in the specified text string and returns an object that corresponds to the root of the specified markup.

Parse(String, ParserContext) Parse(String, ParserContext) Parse(String, ParserContext)

Reads the XAML markup in the specified text string (using a specified ParserContext) and returns an object that corresponds to the root of the specified markup.

Parse(String) Parse(String) Parse(String) Parse(String)

Reads the XAML input in the specified text string and returns an object that corresponds to the root of the specified markup.

public:
 static System::Object ^ Parse(System::String ^ xamlText);
public static object Parse (string xamlText);
static member Parse : string -> obj
Public Shared Function Parse (xamlText As String) As Object

Parameters

xamlText
String String String String

The input XAML, as a single text string.

Returns

The root of the created object tree.

Remarks

The implementation calls Load internally after creating a stream from the string. See Load for additional information such as possible exceptions.

Parse(String, ParserContext) Parse(String, ParserContext) Parse(String, ParserContext)

Reads the XAML markup in the specified text string (using a specified ParserContext) and returns an object that corresponds to the root of the specified markup.

public:
 static System::Object ^ Parse(System::String ^ xamlText, System::Windows::Markup::ParserContext ^ parserContext);
public static object Parse (string xamlText, System.Windows.Markup.ParserContext parserContext);
static member Parse : string * System.Windows.Markup.ParserContext -> obj

Parameters

xamlText
String String String String

The input XAML, as a single text string.

parserContext
ParserContext ParserContext ParserContext ParserContext

Context information used by the parser.

Returns

The root of the created object tree.

Remarks

The implementation calls Load internally after creating a stream from the string. See Load for additional information such as possible exceptions.

Applies to