System.Runtime.Remoting.RemotingServices.Connect Method

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

Syntax

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

Parameters

classToProxy
The Type of a well-known object on the server end to which you want to connect.
url
The URL of the server class.

Returns

A proxy to the remote object that points to an endpoint served by the specified 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.

Requirements

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