Class StreamReadException
Nom dels espais: Aspose.Imaging.CoreExceptions Assemblea: Aspose.Imaging.dll (25.4.0)
Causa quan la lectura de flux va fracassar a causa de la descompte incorrecta i la sol·licitud de comptar bytes.
public class StreamReadException : FrameworkException, ISerializable
Inheritance
object ← Exception ← FrameworkException ← StreamReadException
Implements
Membres heretats
Exception.GetBaseException() , Exception.ToString() , Exception.GetType() , Exception.TargetSite , Exception.Message , Exception.Data , Exception.InnerException , Exception.HelpLink , Exception.Source , Exception.HResult , Exception.StackTrace , Exception.SerializeObjectState , object.GetType() , object.MemberwiseClone() , object.ToString() , object.Equals(object?) , object.Equals(object?, object?) , object.ReferenceEquals(object?, object?) , object.GetHashCode()
Constructors
StreamReadException(Tàrrega)
Inicialitza una nova instància de la classe Aspose.Imaging.CoreExceptions.StreamReadException.
public StreamReadException(string message)
Parameters
message
string
El missatge .
StreamReadException(Llàstima, excepció)
Inicialitza una nova instància de la classe Aspose.Imaging.CoreExceptions.StreamReadException.
public StreamReadException(string message, Exception innerException)
Parameters
message
string
El missatge .
innerException
Exception
La excepció interna.
StreamReadException(Títol, Excepció, int)
Inicialitza una nova instància de la classe Aspose.Imaging.CoreExceptions.StreamReadException.
public StreamReadException(string message, Exception innerException, int expectedReadCount, int actualReadCount)
Parameters
message
string
El missatge .
innerException
Exception
La excepció interna.
expectedReadCount
int
El conte de lectura esperat.
actualReadCount
int
El conte de lectura real.
StreamReadException(Tècnic, int, int)
Inicialitza una nova instància de la classe Aspose.Imaging.CoreExceptions.StreamReadException.
public StreamReadException(string message, int expectedReadCount, int actualReadCount)
Parameters
message
string
El missatge .
expectedReadCount
int
El conte de lectura esperat.
actualReadCount
int
El conte de lectura real.
Properties
ActualReadCount
Obté el conte de bites de lectura real.
public int ActualReadCount { get; }
Valor de la propietat
ExpectedReadCount
Obté el nombre esperat de bites de lectura.
public int ExpectedReadCount { get; }