XamlParseException.GetObjectData(SerializationInfo, StreamingContext) XamlParseException.GetObjectData(SerializationInfo, StreamingContext) XamlParseException.GetObjectData(SerializationInfo, StreamingContext) XamlParseException.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

Gets the data that is required to serialize the specified object by populating the specified SerializationInfo object.

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

Parameters

info
SerializationInfo SerializationInfo SerializationInfo SerializationInfo

The serialization information object to add the serialization data to.

context
StreamingContext StreamingContext StreamingContext StreamingContext

The destination for this serialization.

Remarks

GetObjectData sets a SerializationInfo object with all the exception object data targeted for serialization. During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.

Security

SecurityPermission
for providing serialization services. Associated enumeration: SerializationFormatter Security action: Demand().

Applies to