XamlParseException::GetObjectData Method (SerializationInfo^, StreamingContext)

 

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

Namespace:   System.Windows.Markup
Assembly:  PresentationFramework (in PresentationFramework.dll)

public:
[SecurityCriticalAttribute]
[SecurityPermissionAttribute(SecurityAction::Demand, Flags = SecurityPermissionFlag::SerializationFormatter)]
virtual void GetObjectData(
	SerializationInfo^ info,
	StreamingContext context
) override

Parameters

info
Type: System.Runtime.Serialization::SerializationInfo^

The serialization information object to add the serialization data to.

context
Type: System.Runtime.Serialization::StreamingContext

The destination for this serialization.

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.

SecurityPermission

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

.NET Framework
Available since 3.0
Return to top
Show: