XamlReader.Parse 메서드
정의
지정된 텍스트 문자열에서 태그를 읽고 지정된 태그의 루트에 해당하는 개체를 반환합니다.Reads the markup in the specified text string and returns an object that corresponds to the root of the specified markup.
오버로드
Parse(String, ParserContext) |
지정된 ParserContext를 사용하여 지정된 텍스트 문자열에서 XAML 태그를 읽고 지정된 태그의 루트에 해당하는 개체를 반환합니다.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) |
지정된 텍스트 문자열에서 XAML 입력을 읽고 지정된 태그의 루트에 해당하는 개체를 반환합니다.Reads the XAML input in the specified text string and returns an object that corresponds to the root of the specified markup. |
Parse(String, Boolean) | |
Parse(String, ParserContext, Boolean) |
Parse(String, ParserContext)
지정된 ParserContext를 사용하여 지정된 텍스트 문자열에서 XAML 태그를 읽고 지정된 태그의 루트에 해당하는 개체를 반환합니다.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
Public Shared Function Parse (xamlText As String, parserContext As ParserContext) As Object
매개 변수
- xamlText
- String
단일 텍스트 문자열인 입력 XAML입니다.The input XAML, as a single text string.
- parserContext
- ParserContext
파서에서 사용하는 컨텍스트 정보입니다.Context information used by the parser.
반환
만든 개체 트리의 루트입니다.The root of the created object tree.
설명
구현은 Load 문자열에서 스트림을 만든 후 내부적으로를 호출 합니다.The implementation calls Load internally after creating a stream from the string. Load가능한 예외 등의 추가 정보는를 참조 하세요.See Load for additional information such as possible exceptions.
적용 대상
Parse(String)
지정된 텍스트 문자열에서 XAML 입력을 읽고 지정된 태그의 루트에 해당하는 개체를 반환합니다.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
매개 변수
- xamlText
- String
단일 텍스트 문자열인 입력 XAML입니다.The input XAML, as a single text string.
반환
만든 개체 트리의 루트입니다.The root of the created object tree.
설명
구현은 Load 문자열에서 스트림을 만든 후 내부적으로를 호출 합니다.The implementation calls Load internally after creating a stream from the string. Load가능한 예외 등의 추가 정보는를 참조 하세요.See Load for additional information such as possible exceptions.
적용 대상
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