SALES: 1-800-867-1380
Information
The topic you requested is included in another documentation set. For convenience, it's displayed below. Choose Switch to see the topic in its original location.

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.

Parameters

requestedType

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

Return Value

Information required to generate a proxy.

Exception typeCondition

RemotingException

This instance is not a valid remoting object.

SecurityException

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
Was this page helpful?
(1500 characters remaining)
Thank you for your feedback

Community Additions

Show:
© 2014 Microsoft