Edit

Share via


Win32Exception.GetObjectData(SerializationInfo, StreamingContext) Method

Definition

Caution

This API supports obsolete formatter-based serialization. It should not be called or extended by application code.

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

[System.Obsolete("This API supports obsolete formatter-based serialization. It should not be called or extended by application code.", DiagnosticId="SYSLIB0051", UrlFormat="https://aka.ms/dotnet-warnings/{0}")]
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);

Parameters

context
StreamingContext

The contextual information about the source or destination.

Implements

Attributes

Exceptions

info is null.

Applies to