System.Runtime.Remoting.RemotingServices.Connect Method

Creates a proxy for a well-known object, given the Type, URL, and channel-specific data.

Syntax

[System.Runtime.InteropServices.ComVisible(true)]
public static object Connect (Type classToProxy, string url, object data)

Parameters

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.

Returns

A proxy that points to an endpoint that is served by the requested well-known object.

Remarks

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.

Requirements

Namespace: System.Runtime.Remoting
Assembly: mscorlib (in mscorlib.dll)
Assembly Versions: 1.0.5000.0, 2.0.0.0, 4.0.0.0