共用方式為


How to: Create a Channel Template in a Configuration File 

The following example shows how to create a channel template in a configuration file.

Example

<configuration>
   <system.runtime.remoting>
      <application>
      </application>
      <channels>
         <channel 
            id="MyChannel"
            type="MyChannel,MyChannelAssembly"
         >
            <clientProviders> 
               <formatter ref="soap"> 
               </formatter>
               <provider 
                  type="Channels.AuthenticationSink,MyChannels"
               />
            </clientProviders>
         </channel>
      </channels>
   </system.runtime.remoting>
</configuration>

See Also

Reference

System.Runtime.Remoting.RemotingConfiguration Class

Concepts

Channel Registration
Configuration of Remote Applications
Remote Object Configuration

Other Resources

Registering Remote Objects Using Configuration Files
.NET Framework Remoting Overview
.NET Framework Remoting Overview