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.

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

'Declaration
Public Overridable Function CreateObjRef ( _
	requestedType As Type _
) As ObjRef
'Usage
Dim instance As MarshalByRefObject
Dim requestedType As Type
Dim returnValue As ObjRef

returnValue = instance.CreateObjRef(requestedType)
public ObjRef CreateObjRef (
	Type requestedType
)
public function CreateObjRef (
	requestedType : Type
) : ObjRef

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 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

Community Additions

ADD
Show:
© 2014 Microsoft