XamlTypeName.TryParseList Method

Provides a XamlTypeName value based on a string that can specify multiple type names, and an object that can resolve a markup prefix into a namespace.

Namespace:  System.Xaml.Schema
Assembly:  System.Xaml (in System.Xaml.dll)

public static bool TryParseList(
	string typeNameList,
	IXamlNamespaceResolver namespaceResolver,
	out IList<XamlTypeName> result
)

Parameters

typeNameList
Type: System.String

A string that contains multiple types. See Remarks.

namespaceResolver
Type: System.Xaml.IXamlNamespaceResolver

An object or service provider that implements IXamlNamespaceResolver.

result
Type: System.Collections.Generic.IList<XamlTypeName>

Out parameter that contains the created XamlTypeName if the return value is true.

Return Value

Type: System.Boolean
true if the parse was successful and result contains a useful value; otherwise, false.

ExceptionCondition
ArgumentNullException

typeNameList or namespaceResolver is null.

.NET Framework

Supported in: 4.6, 4.5, 4

.NET Framework Client Profile

Supported in: 4
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
Show:
© 2015 Microsoft