Udostępnij za pośrednictwem


<add> of <transportConfigurationType>

This element is a key/value pair, which identifies the type of a particular transport.

Schema Hierarchy

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

Syntax

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

Attributes and Elements

The following sections describe attributes, child elements, and parent elements.

Attributes

Attribute Description

name

Required String attribute.

Contains a user-defined key that uniquely identifies the transport type.

transportConfigurationType

A string that contains the type that implements the specific transport.

Child Elements

None

Parent Elements

Element Description

<transportConfigurationTypes>

A collection of types that implement the specific transport.

Example

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

See Also

Reference

TransportConfigurationTypeElement
ServiceHostingEnvironmentSection
ServiceHostingEnvironment

Other Resources

Hosting