XamlTypeMapper.GetType(String, String) 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.
Obtient le CLR Type auquel un élément XAML donné est mappé, à l’aide du préfixe d’espace de noms XML et du nom d’élément spécifiés.
public:
Type ^ GetType(System::String ^ xmlNamespace, System::String ^ localName);
public Type GetType(string xmlNamespace, string localName);
override this.GetType : string * string -> Type
Public Function GetType (xmlNamespace As String, localName As String) As Type
Paramètres
- xmlNamespace
- String
Préfixe d’espace de noms XML spécifié.
- localName
- String
Nom « local » de l’élément XAML pour lequel obtenir le mappage Type . Local dans ce contexte signifie qu’il s’agit d’un mappage par rapport au paramètre fourni xmlNamespace.
Retours
Pour Type l’objet, ou null si aucun mappage n’a pu être résolu.
Exceptions
Remarques
Si un type n’est pas trouvé qui correspond aux informations fournies, null est retourné.
N’incluez pas le préfixe dans le cadre de localName. Pour toutes les informations d’élément XAML préfixées, séparez-les en xmlNamespace et localName les composants de cet appel d’API.