Found some even better info than when I sent my previous email.
Here is a quote from MSDN online docs:
IChannel implementations use channel configuration properties to configure the channel at run time. Channel properties can be specified in a configuration file, or programmatically, inside of an IDictionary. In a configuration file all values are represented by strings, but when building a property IDictionary programmatically, value types can be specified with their native values or with strings.
So using that info, I wrote the following code to create a tcpchannel with the name of russ:
System.Collections.IDictionary idic = new System.Collections.Hashtable();
idic.Add("name", "russ");System.Runtime.Remoting.Channels.Tcp.TcpChannel tcp = new System.Runtime.Remoting.Channels.Tcp.TcpChannel(idic, null, null); System.Windows.Forms.MessageBox.Show(tcp.ChannelName);
Hope that helps...
Russ
At 02:06 PM 7/11/2003 -0400, you wrote:
I'm trying to create a new Channel that subclasses TcpChannel. According to the MSDN documentation, TcpChannel.ChannelName is virtual and can be overridden, but when I try to redeclare ChannelName as "override" in my new class, it says I can't do it because TcpChannel.ChannelName is not new, virtual, or override. Is this a bug?
Thanks for your assistance.
Wayne
