MarshalByRefObject.CreateObjRef Method

Creates an object that contains all the relevant information required to generate a proxy used to communicate with a remote object.

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

public virtual ObjRef CreateObjRef (
	Type requestedType
public ObjRef CreateObjRef (
	Type requestedType
public function CreateObjRef (
	requestedType : Type
) : ObjRef



The Type of the object that the new ObjRef will reference.

Return Value

Information required to generate a proxy.

Exception typeCondition


This instance is not a valid remoting object.


The immediate caller does not have infrastructure permission.

Windows 98, Windows 2000 SP4, Windows Millennium Edition, Windows Server 2003, Windows XP Media Center Edition, Windows XP Professional x64 Edition, Windows XP SP2, Windows XP Starter Edition

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

.NET Framework

Supported in: 2.0, 1.1, 1.0