Editar

Compartir a través de


XamlTypeName.TryParseList Method

Definition

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.

Applies to