Creates a proxy for a well-known object, given the Type, URL, and channel-specific data.
- classToProxy
- The Type of the well-known object to which you want to connect.
- url
- The URL of the well-known object.
- data
- Channel specific data. Can be null.
A proxy that points to an endpoint that is served by the requested well-known object.
The returned proxy object points to an endpoint served by the specified well-known object. No messages are sent over the network until a method is called on the proxy.
The data object is used to communicate information to the channel, and is passed to the System.Runtime.Remoting.Channels.IChannelSender.CreateMessageSink(string, object, String@) method.