Win32Exception.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

Sets the SerializationInfo object with the file name and line number at which this Win32Exception occurred.

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
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

context
StreamingContext

The contextual information about the source or destination.

Implements

<xref href="System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)?alt=System.Runtime.Serialization.ISerializable.GetObjectData(System.Runtime.Serialization.SerializationInfo,System.Runtime.Serialization.StreamingContext)&text=GetObjectData(SerializationInfo%2C+StreamingContext)" data-throw-if-not-resolved="True"/>

Exceptions

info is null.

Applies to