XamlParseException.GetObjectData(SerializationInfo, StreamingContext) Método

Definição

Obtém os dados necessários para serializar o objeto especificado preenchendo o objeto SerializationInfo especificado.Gets the data that is required to serialize the specified object by populating the specified SerializationInfo object.

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

Parâmetros

info
SerializationInfo

O objeto de informações de serialização ao qual adicionar os dados de serialização.The serialization information object to add the serialization data to.

context
StreamingContext

O destino dessa serialização.The destination for this serialization.

Atributos

Comentários

GetObjectData define um SerializationInfo objeto com todos os dados de objeto de exceção direcionados para serialização.GetObjectData sets a SerializationInfo object with all the exception object data targeted for serialization. Durante a desserialização, a exceção é reconstituída do SerializationInfo transmitido no fluxo.During deserialization, the exception is reconstituted from the SerializationInfo transmitted over the stream.

Aplica-se a