ParameterInfo.GetRealObject(StreamingContext) Method

Definition

Returns the real object that should be deserialized instead of the object that the serialized stream specifies.

public:
 virtual System::Object ^ GetRealObject(System::Runtime::Serialization::StreamingContext context);
[System.Security.SecurityCritical]
public object GetRealObject (System.Runtime.Serialization.StreamingContext context);
abstract member GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
override this.GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
Public Function GetRealObject (context As StreamingContext) As Object

Parameters

context
StreamingContext

The serialized stream from which the current object is deserialized.

Returns

The actual object that is put into the graph.

Implements

Attributes

Exceptions

The parameter's position in the parameter list of its associated member is not valid for that member's type.

Remarks

This method implements the IObjectReference.GetRealObject method.

Security

SecurityCriticalAttribute
Requires full trust for the immediate caller. This member cannot be used by partially trusted or transparent code.

Applies to