OdbcException.GetObjectData(SerializationInfo, StreamingContext) Método

Definición

Precaución

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

public:
 override void GetObjectData(System::Runtime::Serialization::SerializationInfo ^ si, System::Runtime::Serialization::StreamingContext context);
public override void GetObjectData (System.Runtime.Serialization.SerializationInfo si, System.Runtime.Serialization.StreamingContext context);
[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 si, System.Runtime.Serialization.StreamingContext context);
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
[<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}")>]
override this.GetObjectData : System.Runtime.Serialization.SerializationInfo * System.Runtime.Serialization.StreamingContext -> unit
Public Overrides Sub GetObjectData (si As SerializationInfo, context As StreamingContext)

Parámetros

si
SerializationInfo

SerializationInfo que contiene los datos serializados del objeto que hacen referencia a la excepción que se va a producir.

context
StreamingContext

StreamingContext que contiene información contextual sobre el origen o el destino.

Atributos

Excepciones

El parámetro si es una referencia nula (Nothing en Visual Basic).

Comentarios

GetObjectData establece una SerializationInfo con todos los datos del objeto de excepción destinados para la serialización. Durante la deserialización, se reconstituye la excepción a partir de la SerializationInfo transmitida en el flujo.

Se aplica a