XamlReader.Parse Méthode

Définition

Lit le balisage dans la chaîne de texte spécifiée et retourne un objet qui correspond à la racine du balisage spécifié.

Surcharges

Nom Description
Parse(String, ParserContext)

Lit le balisage XAML dans la chaîne de texte spécifiée (à l’aide d’un élément spécifié ParserContext) et retourne un objet qui correspond à la racine du balisage spécifié.

Parse(String)

Lit l’entrée XAML dans la chaîne de texte spécifiée et retourne un objet qui correspond à la racine du balisage spécifié.

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

Parse(String, ParserContext)

Lit le balisage XAML dans la chaîne de texte spécifiée (à l’aide d’un élément spécifié ParserContext) et retourne un objet qui correspond à la racine du balisage spécifié.

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
Public Shared Function Parse (xamlText As String, parserContext As ParserContext) As Object

Paramètres

xamlText
String

XAML d’entrée, sous forme de chaîne de texte unique.

parserContext
ParserContext

Informations contextuelles utilisées par l’analyseur.

Retours

Racine de l’arborescence d’objets créée.

Remarques

L’implémentation appelle Load en interne après avoir créé un flux à partir de la chaîne. Pour Load plus d’informations, telles que les exceptions possibles.

S’applique à

Parse(String)

Lit l’entrée XAML dans la chaîne de texte spécifiée et retourne un objet qui correspond à la racine du balisage spécifié.

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

Paramètres

xamlText
String

XAML d’entrée, sous forme de chaîne de texte unique.

Retours

Racine de l’arborescence d’objets créée.

Remarques

L’implémentation appelle Load en interne après avoir créé un flux à partir de la chaîne. Pour Load plus d’informations, telles que les exceptions possibles.

S’applique à

Parse(String, Boolean)

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

Paramètres

xamlText
String
useRestrictiveXamlReader
Boolean

Retours

S’applique à

Parse(String, ParserContext, Boolean)

public:
 static System::Object ^ Parse(System::String ^ xamlText, System::Windows::Markup::ParserContext ^ parserContext, bool useRestrictiveXamlReader);
public static object Parse(string xamlText, System.Windows.Markup.ParserContext parserContext, bool useRestrictiveXamlReader);
static member Parse : string * System.Windows.Markup.ParserContext * bool -> obj
Public Shared Function Parse (xamlText As String, parserContext As ParserContext, useRestrictiveXamlReader As Boolean) As Object

Paramètres

xamlText
String
parserContext
ParserContext
useRestrictiveXamlReader
Boolean

Retours

S’applique à