Compartir a través de


XamlTypeName.TryParseList Método

Definición

Proporciona un valor de XamlTypeName basado en una cadena que puede especificar varios nombres de tipo y un objeto que puede resolver un prefijo de marcado en un espacio de nombres.

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

Parámetros

typeNameList
String

Cadena que contiene varios tipos.

namespaceResolver
IXamlNamespaceResolver

Proveedor de objetos o servicios que implementa IXamlNamespaceResolver.

result
IList<XamlTypeName>

Parámetro Out que contiene el objeto XamlTypeName que se ha creado si el valor devuelto es true.

Devoluciones

Boolean

Es true si el análisis se realizó correctamente y result contiene un valor útil; de lo contrario, es false.

Excepciones

typeNameList o namespaceResolver es null.

Se aplica a