Was this page helpful?
Your feedback about this content is important. Let us know what you think.
Additional feedback?
1500 characters remaining
Export (0) Print
Expand All

MarshalByRefObject.CreateObjRef Method

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

[Visual Basic]
Public Overridable Function CreateObjRef( _
   ByVal requestedType As Type _
) As ObjRef
public virtual ObjRef CreateObjRef(
 Type requestedType
public: virtual 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 Type Condition
RemotingException This instance is not a valid remoting object.
SecurityException The immediate caller does not have infrastructure permission.


Platforms: Windows 98, Windows NT 4.0, Windows Millennium Edition, Windows 2000, Windows XP Home Edition, Windows XP Professional, Windows Server 2003 family

.NET Framework Security: 

See Also

MarshalByRefObject Class | MarshalByRefObject Members | System Namespace

Was this page helpful?
(1500 characters remaining)
Thank you for your feedback
© 2015 Microsoft