BadImageFormatException.GetObjectData(SerializationInfo, StreamingContext) Méthode

Définition

Définit l'objet SerializationInfo avec le nom du fichier, le journal du cache de l'assembly et d'autres informations se rapportant à l'exception.Sets the SerializationInfo object with the file name, assembly cache log, 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

Exceptions

L'appelant n'a pas l'autorisation requise.The caller does not have the required permission.

S’applique à