Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
How to: Configure a Channel Programmatically

How to: Configure a Channel Programmatically

This topic is specific to a legacy technology that is retained for backward compatibility with existing applications and is not recommended for new development. Distributed applications should now be developed using the  Windows Communication Foundation (WCF).

This code example shows how to configure a channel programmatically for a server application domain. In this case, the server is specifying that the remoting system should use a HttpChannel object for transportation, but use a BinaryFormatter object for serialization and deserialization.


Dim props = New Hashtable() As IDictionary
props("name") = "ChannelName1" 
Dim channel As New HttpChannel( _
   props, _
   Nothing, _
   New BinaryServerFormatterSinkProvider() _

See Also

Community Additions

© 2015 Microsoft