RuntimeTypeHandle.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

Populates a SerializationInfo with the data necessary to deserialize the type represented by the current instance.

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
[System.Security.SecurityCritical]
public void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Parameters

info
SerializationInfo

The object to be populated with serialization information.

context
StreamingContext

(Reserved) The location where serialized data will be stored and retrieved.

Implements

Attributes

Exceptions

info is null.

Remarks

The context parameter is reserved; it does not currently participate in this operation.

For more information about the serialization operation performed by this method, see the SerializationInfo.AddValue(String, Object, Type) method.

Security

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

Applies to