XamlReader.Parse メソッド
定義
重要
一部の情報は、リリース前に大きく変更される可能性があるプレリリースされた製品に関するものです。 Microsoft は、ここに記載されている情報について、明示または黙示を問わず、一切保証しません。
指定したテキスト文字列内のマークアップを読み取り、指定したマークアップのルートに対応するオブジェクトを返します。
オーバーロード
| 名前 | 説明 |
|---|---|
| Parse(String, ParserContext) |
(指定した ParserContextを使用して) 指定したテキスト文字列内の XAML マークアップを読み取り、指定したマークアップのルートに対応するオブジェクトを返します。 |
| Parse(String) |
指定したテキスト文字列内の XAML 入力を読み取り、指定したマークアップのルートに対応するオブジェクトを返します。 |
| Parse(String, Boolean) | |
| Parse(String, ParserContext, Boolean) |
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)
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
- useRestrictiveXamlReader
- Boolean
返品
適用対象
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
パラメーター
- xamlText
- String
- parserContext
- ParserContext
- useRestrictiveXamlReader
- Boolean