TypeInitializationException.GetObjectData(SerializationInfo, StreamingContext) Méthode

Définition

Définit l'objet SerializationInfo à l'aide du nom de type et d'autres informations se rapportant à l'exception.Sets the SerializationInfo object with the type name and additional exception information.

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

Paramètres

info
SerializationInfo

SerializationInfo qui contient les données d'objet sérialisées concernant l'exception levée.The SerializationInfo that holds the serialized object data about the exception being thrown.

context
StreamingContext

StreamingContext qui contient des informations contextuelles relatives à la source ou à la destination.The StreamingContext that contains contextual information about the source or destination.

Attributs

S’applique à