ReportServerException.GetObjectData Method (SerializationInfo, StreamingContext)
This API supports the product infrastructure and is not intended to be used directly from your code.
Populates the SerializationInfo structure with information about the exception.
Namespace: Microsoft.Reporting.WinForms
Assembly: Microsoft.ReportViewer.WinForms (in Microsoft.ReportViewer.WinForms.dll)
Syntax
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
[SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)]
public override void GetObjectData(
SerializationInfo info,
StreamingContext context
)
public:
[SecurityCriticalAttribute]
[SecurityTreatAsSafeAttribute]
[SecurityPermissionAttribute(SecurityAction::LinkDemand, Flags = SecurityPermissionFlag::SerializationFormatter)]
virtual void GetObjectData(
SerializationInfo^ info,
StreamingContext context
) override
[<SecurityCriticalAttribute>]
[<SecurityTreatAsSafeAttribute>]
[<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags = SecurityPermissionFlag.SerializationFormatter)>]
override GetObjectData :
info:SerializationInfo *
context:StreamingContext -> unit
<SecurityCriticalAttribute>
<SecurityTreatAsSafeAttribute>
<SecurityPermissionAttribute(SecurityAction.LinkDemand, Flags := SecurityPermissionFlag.SerializationFormatter)>
Public Overrides Sub GetObjectData (
info As SerializationInfo,
context As StreamingContext
)
Parameters
info
Type: System.Runtime.Serialization.SerializationInfoThe SerializationInfo that holds the serialized data about the exception being thrown.
context
Type: System.Runtime.Serialization.StreamingContextThe contextual information about the source or destination.
Implements
ISerializable.GetObjectData(SerializationInfo, StreamingContext) _Exception.GetObjectData(SerializationInfo, StreamingContext)
See Also
ReportServerException Class
Microsoft.Reporting.WinForms Namespace
Return to top