言語

XamlReader.Parse メソッド

定義

指定したテキスト文字列内のマークアップを読み取り、指定したマークアップのルートに対応するオブジェクトを返します。

オーバーロード

名前 説明
Parse(String, ParserContext)

(指定した ParserContextを使用して) 指定したテキスト文字列内の XAML マークアップを読み取り、指定したマークアップのルートに対応するオブジェクトを返します。

Parse(String)

指定したテキスト文字列内の XAML 入力を読み取り、指定したマークアップのルートに対応するオブジェクトを返します。

Parse(String, Boolean)

指定したテキスト文字列内の XAML 入力を読み取り、対応するオブジェクト ツリーのルートを返します。

Parse(String, ParserContext, Boolean)

指定した ParserContext を使用して、指定したテキスト文字列内の XAML 入力を読み取り、対応するオブジェクト ツリーのルートを返します。

Parse(String, ParserContext)

(指定した ParserContextを使用して) 指定したテキスト文字列内の XAML マークアップを読み取り、指定したマークアップのルートに対応するオブジェクトを返します。

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

パラメーター

xamlText
String

1 つのテキスト文字列としての入力 XAML。

parserContext
ParserContext

パーサーによって使用されるコンテキスト情報。

返品

作成されたオブジェクト ツリーのルート。

注釈

実装は、文字列からストリームを作成した後、内部的に Load を呼び出します。 考えられる例外などの追加情報については、 Load を参照してください。

適用対象

Parse(String)

指定したテキスト文字列内の XAML 入力を読み取り、指定したマークアップのルートに対応するオブジェクトを返します。

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

パラメーター

xamlText
String

1 つのテキスト文字列としての入力 XAML。

返品

作成されたオブジェクト ツリーのルート。

注釈

実装は、文字列からストリームを作成した後、内部的に Load を呼び出します。 考えられる例外などの追加情報については、 Load を参照してください。

適用対象

Parse(String, Boolean)

指定したテキスト文字列内の XAML 入力を読み取り、対応するオブジェクト ツリーのルートを返します。

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

パラメーター

xamlText
String

1 つのテキスト文字列としての XAML 入力。

useRestrictiveXamlReader
Boolean

true 潜在的に危険な型のインスタンス化を制限する。それ以外の場合は false

返品

作成されたオブジェクト ツリーのルート。

例外

xamlTextnullです。

注釈

制限モードは、多層防御の測定です。 信頼されていない XAML の制限的な解析は、安全として扱ったり、低い特権のサンドボックスでの分離の代わりに扱ったりしないでください。

適用対象

Parse(String, ParserContext, Boolean)

指定した ParserContext を使用して、指定したテキスト文字列内の XAML 入力を読み取り、対応するオブジェクト ツリーのルートを返します。

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

パラメーター

xamlText
String

1 つのテキスト文字列としての XAML 入力。

parserContext
ParserContext

パーサーによって使用されるコンテキスト情報。

useRestrictiveXamlReader
Boolean

true 潜在的に危険な型のインスタンス化を制限する。それ以外の場合は false

返品

作成されたオブジェクト ツリーのルート。

例外

xamlTextnullです。

注釈

制限モードは、多層防御の測定です。 信頼されていない XAML の制限的な解析は、安全として扱ったり、低い特権のサンドボックスでの分離の代わりに扱ったりしないでください。

適用対象