<add> de <transportConfigurationType>

Cet élément est une paire clé/valeur, qui identifie le type d'un transport particulier.

Hiérarchie de schéma

<system.serviceModel>
  <serviceHostingEnvironment>
    <transportConfigurationTypes>
      <add> de <transportConfigurationType>

Syntaxe

<serviceHostingEnvironment> 
   <transportConfigurationTypes>
      <add name="String"
               transportConfigurationType="String"/> 
   </transportConfigurationTypes>
</serviceHostingEnvironment>

Attributs et éléments

Les sections suivantes décrivent des attributs, des éléments enfants et des éléments parents.

Attributs

Attribut Description

name

Attribut de chaîne requis.

Contient une clé définie par l'utilisateur qui identifie uniquement le type de transport.

transportConfigurationType

Chaîne contenant le type qui implémente le transport spécifique.

Éléments enfants

Aucun

Éléments parents

Élément Description

<transportConfigurationTypes>

Collection de types implémentant le transport spécifique.

Exemple

<serviceHostingEnvironment> 
   <transportConfigurationTypes>
      <add name="net.udp"
      transportConfigurationType="Microsoft.ServiceModel.Samples.Hosting.HostedUdpTransportConfiguration, UdpActivation, Version=1.0.0.0, Culture=neutral, PublicKeyToken=6fa904d2da1848d6" /> 
   </transportConfigurationTypes>
</serviceHostingEnvironment>

Voir aussi

Référence

TransportConfigurationTypeElement
ServiceHostingEnvironmentSection
ServiceHostingEnvironment

Autres ressources

Hosting