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
Not applicable.



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 Server 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 Microsoft .NET Framework 3.0 is supported on Windows Vista, Microsoft Windows XP SP2, and Windows Server 2003 SP1.

.NET Framework

Supported in: 3.0, 2.0, 1.1, 1.0