XamlTypeName.ParseList(String, IXamlNamespaceResolver) Méthode
Définition
Important
Certaines informations portent sur la préversion du produit qui est susceptible d’être en grande partie modifiée avant sa publication. Microsoft exclut toute garantie, expresse ou implicite, concernant les informations fournies ici.
Fournit une valeur XamlTypeName basée sur une chaîne qui peut spécifier plusieurs noms de types et un objet qui peut résoudre un préfixe de balise dans un espace de noms.
public:
static System::Collections::Generic::IList<System::Xaml::Schema::XamlTypeName ^> ^ ParseList(System::String ^ typeNameList, System::Xaml::IXamlNamespaceResolver ^ namespaceResolver);
public static System.Collections.Generic.IList<System.Xaml.Schema.XamlTypeName> ParseList (string typeNameList, System.Xaml.IXamlNamespaceResolver namespaceResolver);
static member ParseList : string * System.Xaml.IXamlNamespaceResolver -> System.Collections.Generic.IList<System.Xaml.Schema.XamlTypeName>
Public Shared Function ParseList (typeNameList As String, namespaceResolver As IXamlNamespaceResolver) As IList(Of XamlTypeName)
Paramètres
- typeNameList
- String
Chaîne qui contient plusieurs types.
- namespaceResolver
- IXamlNamespaceResolver
Fournisseur d'objets ou de services qui implémente IXamlNamespaceResolver.
Retours
Élément XamlTypeName créé.
Exceptions
typeNameList
ou namespaceResolver
est null
.
La chaîne ne peut pas être analysée.
Remarques
Voici quasi-BNF pour le nom de type imbriqué ou l’analyse de nom de type multiple activée par cette méthode :
NestedTypeName = Name | Name '+' NestedTypeName
TypeName = NestedTypeName | NestedTypeName ‘[]’
XamlTypeName = Prefix ‘:’ TypeName TypeArgs | TypeName TypeArgs
TypeArgs = empty | ‘(‘ XamlTypeNameList ‘)’
XamlTypeNameList = XamlTypeName XamlTypeNameList1
XamlTypeNameList1 = empty | ‘,’ XamlTypeNameList