GetObjectData Method
Collapse the table of content
Expand the table of content

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)

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

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:
© 2016 Microsoft