NGWS SDK Documentation  

This is preliminary documentation and subject to change.
To comment on this topic, please send us email at ngwssdk@microsoft.com. Thanks!

IObjectReference.GetRealObject

Returns the real object that should be deserialized, rather than object that the serialized stream specifies.

[Visual Basic]
Function GetRealObject( _
   ByVal context As StreamingContext _
) As Object
[C#]
object GetRealObject(
   StreamingContext context
);
[C++]
Object* GetRealObject(
   StreamingContext context
) = 0;
[JScript]
function GetRealObject(
   context : StreamingContext
) : Object;

Parameters

context
[To be supplied.]

Return Value

Returns the actual object to be put into the graph.

Remarks

Typically, this method is useful in a remoting situation. We serialize (not an actual object, A), but a proxy-creator object, C. When C is deserialized, deserialization calls its GetRealObject method. At this point, C instantiates a proxy object, P, that refers back to the original object A, perhaps on a remote computer. Object C is typically discarded and reclaimed later by the garbage collector.

See Also

IObjectReference Interface | IObjectReference Members | System.Runtime.Serialization Namespace