This documentation is archived and is not being maintained.

RemotingServices.Connect Method (Type, String, Object)

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

Namespace:  System.Runtime.Remoting
Assembly:  mscorlib (in mscorlib.dll)

public static Object Connect(
	Type classToProxy,
	string url,
	Object data


Type: System.Type
The Type of the well-known object to which you want to connect.
Type: System.String
The URL of the well-known object.
Type: System.Object
Channel specific data. Can be null.

Return Value

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


The immediate caller does not have permission to configure remoting types and channels.

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 IChannelSender.CreateMessageSink method.

.NET Framework

Supported in: 4, 3.5, 3.0, 2.0, 1.1, 1.0

.NET Framework Client Profile

Supported in: 4, 3.5 SP1

Windows 7, Windows Vista SP1 or later, Windows XP SP3, Windows XP SP2 x64 Edition, Windows Server 2008 (Server Core not supported), Windows Server 2008 R2 (Server Core supported with SP1 or later), Windows Server 2003 SP2

The .NET Framework does not support all versions of every platform. For a list of the supported versions, see .NET Framework System Requirements.