RuntimeFieldHandle.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

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

public:
 virtual void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public 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
[<System.Security.SecurityCritical>]
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 SerializationInfo object to populate with serialization information.

context
StreamingContext

(Reserved) The place to store and retrieve serialized data.

Implements

Attributes

Exceptions

info is null.

The Value property of the current instance is not a valid handle.

Remarks

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

For more information, see the SerializationInfo.AddValue method.

Applies to