Bewerken

Delen via


ParameterInfo.GetRealObject(StreamingContext) Method

Definition

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

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);
public object GetRealObject (System.Runtime.Serialization.StreamingContext context);
[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
public 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
[<System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")>]
abstract member GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
override this.GetRealObject : System.Runtime.Serialization.StreamingContext -> obj
[<System.Security.SecurityCritical>]
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.

Applies to