System.IO.Compression.ZLibException.ZLibException C# (CSharp) Method

ZLibException() protected method

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.
return 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);
        }