RealProxy.CreateObjRef(Type) Method

Definition

Creates an ObjRef for the specified object type, and registers it with the remoting infrastructure as a client-activated object.

C#
public virtual System.Runtime.Remoting.ObjRef CreateObjRef(Type requestedType);
C#
[System.Security.SecurityCritical]
public virtual System.Runtime.Remoting.ObjRef CreateObjRef(Type requestedType);

Parameters

requestedType
Type

The object type that an ObjRef is created for.

Returns

A new instance of ObjRef that is created for the specified type.

Attributes

Examples

C#
public override ObjRef CreateObjRef(Type ServerType)
{
   Console.WriteLine ("CreateObjRef Method Called ...");
   CustomObjRef myObjRef = new CustomObjRef(myMarshalByRefObject,ServerType);
   myObjRef.URI = myUri ;
   return myObjRef;
}

Applies to

Product Versions
.NET Framework 1.1, 2.0, 3.0, 3.5, 4.0, 4.5, 4.5.1, 4.5.2, 4.6, 4.6.1, 4.6.2, 4.7, 4.7.1, 4.7.2, 4.8, 4.8.1

See also