XamlTypeName.TryParseList Method
Definition
Important
Some information relates to prerelease product that may be substantially modified before it’s released. Microsoft makes no warranties, express or implied, with respect to the information provided here.
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.
public:
static bool TryParseList(System::String ^ typeNameList, System::Xaml::IXamlNamespaceResolver ^ namespaceResolver, [Runtime::InteropServices::Out] System::Collections::Generic::IList<System::Xaml::Schema::XamlTypeName ^> ^ % result);
public static bool TryParseList (string typeNameList, System.Xaml.IXamlNamespaceResolver namespaceResolver, out System.Collections.Generic.IList<System.Xaml.Schema.XamlTypeName> result);
static member TryParseList : string * System.Xaml.IXamlNamespaceResolver * IList -> bool
Public Shared Function TryParseList (typeNameList As String, namespaceResolver As IXamlNamespaceResolver, ByRef result As IList(Of XamlTypeName)) As Boolean
Parameters
- typeNameList
- String
A string that contains multiple types.
- namespaceResolver
- IXamlNamespaceResolver
An object or service provider that implements IXamlNamespaceResolver.
- result
- IList<XamlTypeName>
Out parameter that contains the created XamlTypeName if the return value is true
.
Returns
true
if the parse was successful and result
contains a useful value; otherwise, false
.
Exceptions
typeNameList
or namespaceResolver
is null
.