XamlTypeMapper.AddMappingProcessingInstruction(String, 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.
Définit un mappage entre un espace de noms XML et des espaces de noms CLR dans des assemblys et les ajoute aux XamlTypeMapper informations.
public:
void AddMappingProcessingInstruction(System::String ^ xmlNamespace, System::String ^ clrNamespace, System::String ^ assemblyName);
public void AddMappingProcessingInstruction(string xmlNamespace, string clrNamespace, string assemblyName);
member this.AddMappingProcessingInstruction : string * string * string -> unit
Public Sub AddMappingProcessingInstruction (xmlNamespace As String, clrNamespace As String, assemblyName As String)
Paramètres
- xmlNamespace
- String
Préfixe de l’espace de noms XML.
- clrNamespace
- String
Espace de noms CLR qui contient les types à mapper.
- assemblyName
- String
Assembly qui contient l’espace de noms CLR.
Exceptions
xmlNamespace est null
- ou -
clrNamespace est null
- ou -
assemblyName a la valeur null.
Remarques
AddMappingProcessingInstruction est un moyen programmatique d’ajouter un mappage. Par exemple, les différentes parties de l’instruction de mappage XAML suivante correspondent aux paramètres du AddMappingProcessingInstruction:
<Window xmlns:SDK="clr-namespace:Samples;assembly=SDKSamples">
...
C’est, c’est xmlNamespaceSDK , et c’est clrNamespaceSamples.assemblyNameSDKSamples