System.IO.Compression.ZLibException.ZLibException C# (CSharp) Méthode

ZLibException() protected méthode

Initializes a new ZLibException with serialized data.
protected ZLibException ( SerializationInfo info, StreamingContext context ) : System.Runtime.Serialization
info System.Runtime.Serialization.SerializationInfo The SerializationInfo that holds the serialized object data about the exception being thrown.
context System.Runtime.Serialization.StreamingContext The StreamingContext that contains contextual information about the source or destination.
Résultat System.Runtime.Serialization
        protected ZLibException(SerializationInfo info, StreamingContext context) :
            base(info, context)
        {
            string errContext = info.GetString("zlibErrorContext");
            ZLibNative.ErrorCode errCode = (ZLibNative.ErrorCode)info.GetInt32("zlibErrorCode");
            string errMessage = info.GetString("zlibErrorMessage");
            Init(errContext, errCode, errMessage);
        }