Condividi tramite


XamlTypeName.TryParseList Metodo

Definizione

Fornisce un valore XamlTypeName basato su una stringa che può specificare più nomi del tipo e su un oggetto che può risolvere un prefisso di markup in uno spazio dei nomi.

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

Parametri

typeNameList
String

Stringa che contiene più tipi.

namespaceResolver
IXamlNamespaceResolver

Oggetto o provider di servizi che implementa IXamlNamespaceResolver.

result
IList<XamlTypeName>

Parametro out che contiene l'oggetto XamlTypeName creato se il valore restituito è true.

Restituisce

Boolean

true se l'analisi è stata eseguita correttamente e result contiene un valore utile; in caso contrario, false.

Eccezioni

typeNameList o namespaceResolver è null.

Si applica a