Returns the System.Runtime.Remoting.ObjRef that represents the remote object from the specified proxy.
- obj
- A proxy connected to the object you want to create a System.Runtime.Remoting.ObjRef for.
A System.Runtime.Remoting.ObjRef that represents the remote object the specified proxy is connected to, or null if the object or proxy have not been marshaled.
A System.Runtime.Remoting.ObjRef is a serializable representation of an object used to transfer an object reference across an application domain boundary. Creating a System.Runtime.Remoting.ObjRef for an object is known as marshaling. The System.Runtime.Remoting.ObjRef can be transferred through a channel into another application domain (possibly on another process or computer). Once in the other application domain, the System.Runtime.Remoting.ObjRef must be parsed to create a proxy for the object, generally connected to the real object. This operation is known as unmarshaling. During unmarshaling, the System.Runtime.Remoting.ObjRef is parsed to extract the method information of the remote object and both the transparent proxy and System.Runtime.Remoting.Proxies.RealProxy objects are created.
A System.Runtime.Remoting.ObjRef contains information that describes the Type and class of the object being marshaled, a URI that uniquely identifies the specific object instance, and communication related information about how to reach the remote application where the object is located.