_Exception.GetObjectData(SerializationInfo, StreamingContext) Método

Definición

Proporciona el acceso independiente de la versión de los objetos COM al método GetObjectData(SerializationInfo, StreamingContext).Provides COM objects with version-independent access to the GetObjectData(SerializationInfo, StreamingContext) method.

public:
 void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ info, System::Runtime::Serialization::StreamingContext context);
public void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
[System.Security.SecurityCritical]
public void GetObjectData (System.Runtime.Serialization.SerializationInfo info, System.Runtime.Serialization.StreamingContext context);
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<System.Security.SecurityCritical>]
abstract member GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Sub GetObjectData (info As SerializationInfo, context As StreamingContext)

Parámetros

info
SerializationInfo

Objeto SerializationInfo que contiene los datos serializados del objeto sobre la excepción iniciada.The SerializationInfo object that holds the serialized object data about the exception being thrown.

context
StreamingContext

Estructura StreamingContext que contiene información contextual sobre el origen o el destino.The StreamingContext structure that contains contextual information about the source or destination.

Atributos

Comentarios

Este método es para el acceso a las clases administradas desde el código no administrado y no debe llamarse desde el código administrado.This method is for access to managed classes from unmanaged code and should not be called from managed code.

El Exception.GetObjectData método establece el SerializationInfo objeto con información sobre la excepción.The Exception.GetObjectData method sets the SerializationInfo object with information about the exception.

Se aplica a

Consulte también